public class EnumType extends Object implements PMessage<EnumType>, Serializable, Comparable<EnumType>
| Modifier and Type | Class and Description |
|---|---|
static class |
EnumType._Builder |
static class |
EnumType._Field |
| Modifier and Type | Field and Description |
|---|---|
static PStructDescriptor<EnumType,EnumType._Field> |
kDescriptor |
| Constructor and Description |
|---|
EnumType(String pComment,
String pName,
List<EnumValue> pValues) |
| Modifier and Type | Method and Description |
|---|---|
String |
asString() |
static EnumType._Builder |
builder() |
int |
compareTo(EnumType other) |
PStructDescriptor<EnumType,EnumType._Field> |
descriptor() |
boolean |
equals(Object o) |
Object |
get(int key) |
String |
getComment() |
String |
getName() |
List<EnumValue> |
getValues() |
boolean |
has(int key) |
boolean |
hasComment() |
int |
hashCode() |
boolean |
hasName() |
boolean |
isCompact() |
boolean |
isSimple() |
EnumType._Builder |
mutate() |
int |
num(int key) |
int |
numValues() |
static PStructDescriptorProvider<EnumType,EnumType._Field> |
provider() |
String |
toString() |
public static final PStructDescriptor<EnumType,EnumType._Field> kDescriptor
public boolean hasComment()
public String getComment()
public boolean hasName()
public String getName()
public int numValues()
public int compareTo(EnumType other)
compareTo in interface Comparable<EnumType>public static PStructDescriptorProvider<EnumType,EnumType._Field> provider()
public PStructDescriptor<EnumType,EnumType._Field> descriptor()
descriptor in interface PMessage<EnumType>descriptor in interface PValue<EnumType>public EnumType._Builder mutate()
public static EnumType._Builder builder()
Copyright © 2016. All rights reserved.