@Generated(value="providence-maven-plugin") @Immutable public class EnumType extends Object implements PMessage<EnumType,EnumType._Field>, Comparable<EnumType>, Serializable, BinaryWriter
| Modifier and Type | Class and Description |
|---|---|
static class |
EnumType._Builder
enum {
(<value> ([;,])?)*
}
|
static class |
EnumType._Field |
| Modifier and Type | Field and Description |
|---|---|
static PStructDescriptor<EnumType,EnumType._Field> |
kDescriptor |
| Modifier and Type | Method and Description |
|---|---|
String |
asString() |
static EnumType._Builder |
builder()
Make a model.EnumType builder.
|
int |
compareTo(EnumType other) |
PStructDescriptor<EnumType,EnumType._Field> |
descriptor() |
boolean |
equals(Object o) |
Object |
get(int key) |
Map<String,String> |
getAnnotations() |
String |
getDocumentation() |
String |
getName() |
List<EnumValue> |
getValues() |
boolean |
has(int key) |
boolean |
hasAnnotations() |
boolean |
hasDocumentation() |
int |
hashCode() |
boolean |
hasName() |
boolean |
hasValues() |
EnumType._Builder |
mutate() |
int |
num(int key) |
int |
numAnnotations() |
int |
numValues() |
static PStructDescriptorProvider<EnumType,EnumType._Field> |
provider() |
String |
toString() |
int |
writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer) |
public static final PStructDescriptor<EnumType,EnumType._Field> kDescriptor
public boolean hasDocumentation()
public String getDocumentation()
public boolean hasName()
public int numValues()
public boolean hasValues()
public int numAnnotations()
public boolean hasAnnotations()
public boolean has(int key)
has in interface PMessage<EnumType,EnumType._Field>public int num(int key)
num in interface PMessage<EnumType,EnumType._Field>public Object get(int key)
get in interface PMessage<EnumType,EnumType._Field>@Nonnull public String asString()
asString in interface PMessage<EnumType,EnumType._Field>asString in interface net.morimekta.util.Stringablepublic int compareTo(EnumType other)
compareTo in interface Comparable<EnumType>public int writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer)
throws IOException
writeBinary in interface BinaryWriterIOException@Nonnull public EnumType._Builder mutate()
mutate in interface PMessage<EnumType,EnumType._Field>public static PStructDescriptorProvider<EnumType,EnumType._Field> provider()
public PStructDescriptor<EnumType,EnumType._Field> descriptor()
descriptor in interface PMessage<EnumType,EnumType._Field>descriptor in interface PValue<EnumType>public static EnumType._Builder builder()
Copyright © 2015–2017 morimekta.net. All rights reserved.