@Generated(value="net.morimekta.providence:providence-generator-java", comments="java:serializable") @Immutable public class EnumType extends Object implements Decl, EnumType_OrBuilder, net.morimekta.providence.PMessage<EnumType>, Comparable<EnumType>, Serializable, net.morimekta.providence.serializer.binary.BinaryWriter
| Modifier and Type | Class and Description |
|---|---|
static class |
EnumType._Builder
enum {
(<value> ([;,])?)
|
static class |
EnumType._Field |
| Modifier and Type | Field and Description |
|---|---|
static net.morimekta.providence.descriptor.PStructDescriptor<EnumType> |
kDescriptor |
| Modifier and Type | Method and Description |
|---|---|
String |
asString() |
static EnumType._Builder |
builder()
Make a
p_model.EnumType builder. |
int |
compareTo(EnumType other) |
net.morimekta.providence.descriptor.PStructDescriptor<EnumType> |
descriptor() |
boolean |
equals(Object o) |
<T> T |
get(int key) |
Map<String,String> |
getAnnotations() |
String |
getDocumentation()
Documentation for the specific declaration.
|
String |
getName()
Name of the type, constant or service.
|
List<EnumValue> |
getValues() |
boolean |
has(int key) |
boolean |
hasAnnotations() |
boolean |
hasDocumentation() |
int |
hashCode() |
boolean |
hasName() |
boolean |
hasValues() |
EnumType._Builder |
mutate() |
int |
numAnnotations() |
int |
numValues() |
Optional<Map<String,String>> |
optionalAnnotations() |
Optional<String> |
optionalDocumentation()
Documentation for the specific declaration.
|
static net.morimekta.providence.descriptor.PStructDescriptorProvider<EnumType> |
provider() |
String |
toString() |
int |
writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer) |
public static final net.morimekta.providence.descriptor.PStructDescriptor<EnumType> kDescriptor
public boolean hasDocumentation()
hasDocumentation in interface Declpublic String getDocumentation()
DeclgetDocumentation in interface Decldocumentation value@Nonnull public Optional<String> optionalDocumentation()
DecloptionalDocumentation in interface Decldocumentation field value.public boolean hasName()
@Nonnull public String getName()
Declpublic int numValues()
numValues in interface EnumType_OrBuilderpublic boolean hasValues()
hasValues in interface EnumType_OrBuilder@Nonnull public List<EnumValue> getValues()
getValues in interface EnumType_OrBuildervalues valuepublic int numAnnotations()
numAnnotations in interface EnumType_OrBuilderpublic boolean hasAnnotations()
hasAnnotations in interface EnumType_OrBuilderpublic Map<String,String> getAnnotations()
getAnnotations in interface EnumType_OrBuilderannotations value@Nonnull public Optional<Map<String,String>> optionalAnnotations()
optionalAnnotations in interface EnumType_OrBuilderannotations field value.public boolean has(int key)
has in interface net.morimekta.providence.PMessageOrBuilder<EnumType>public <T> T get(int key)
get in interface net.morimekta.providence.PMessageOrBuilder<EnumType>@Nonnull public String asString()
asString in interface net.morimekta.providence.PMessage<EnumType>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 net.morimekta.providence.serializer.binary.BinaryWriterIOException@Nonnull public EnumType._Builder mutate()
mutate in interface net.morimekta.providence.PMessage<EnumType>@Nonnull public static net.morimekta.providence.descriptor.PStructDescriptorProvider<EnumType> provider()
@Nonnull public net.morimekta.providence.descriptor.PStructDescriptor<EnumType> descriptor()
public static EnumType._Builder builder()
p_model.EnumType builder.Copyright © 2015–2020 morimekta.net. All rights reserved.