public static class EnumType._Builder extends PMessageBuilder<EnumType,EnumType._Field> implements BinaryReader
| Constructor and Description |
|---|
_Builder()
Make a model.EnumType builder.
|
_Builder(EnumType base)
Make a mutating builder off a base model.EnumType.
|
| Modifier and Type | Method and Description |
|---|---|
EnumType._Builder |
addTo(int key,
Object value) |
EnumType._Builder |
addToValues(EnumValue... values)
Adds entries to values.
|
EnumType |
build() |
EnumType._Builder |
clear(int key) |
EnumType._Builder |
clearAnnotations()
Clears the annotations field.
|
EnumType._Builder |
clearDocumentation()
Clears the documentation field.
|
EnumType._Builder |
clearName()
Clears the name field.
|
EnumType._Builder |
clearValues()
Clears the values field.
|
PStructDescriptor<EnumType,EnumType._Field> |
descriptor() |
boolean |
equals(Object o) |
String |
getDocumentation()
Gets the value of the contained documentation.
|
String |
getName()
Gets the value of the contained name.
|
int |
hashCode() |
boolean |
isModified(int key) |
boolean |
isModifiedAnnotations()
Checks if annotations has been modified since the _Builder was created.
|
boolean |
isModifiedDocumentation()
Checks if documentation has been modified since the _Builder was created.
|
boolean |
isModifiedName()
Checks if name has been modified since the _Builder was created.
|
boolean |
isModifiedValues()
Checks if values has been modified since the _Builder was created.
|
boolean |
isSet(int key) |
boolean |
isSetAnnotations()
Checks for presence of the annotations field.
|
boolean |
isSetDocumentation()
Checks for presence of the documentation field.
|
boolean |
isSetName()
Checks for presence of the name field.
|
boolean |
isSetValues()
Checks for presence of the values field.
|
EnumType._Builder |
merge(EnumType from) |
Map<String,String> |
mutableAnnotations()
Gets the builder for the contained annotations.
|
List<EnumValue> |
mutableValues()
Gets the builder for the contained values.
|
PMessageBuilder |
mutator(int key) |
EnumType._Builder |
putInAnnotations(String key,
String value)
Adds a mapping to annotations.
|
void |
readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict) |
EnumType._Builder |
set(int key,
Object value) |
EnumType._Builder |
setAnnotations(Map<String,String> value)
Sets the value of annotations.
|
EnumType._Builder |
setDocumentation(String value)
Sets the value of documentation.
|
EnumType._Builder |
setName(String value)
Sets the value of name.
|
EnumType._Builder |
setValues(Collection<EnumValue> value)
Sets the value of values.
|
boolean |
valid() |
void |
validate() |
addTo, clear, isModified, isSet, modifiedFields, mutator, presentFields, setpublic _Builder()
public _Builder(EnumType base)
base - The base EnumType@Nonnull public EnumType._Builder merge(EnumType from)
merge in class PMessageBuilder<EnumType,EnumType._Field>@Nonnull public EnumType._Builder setDocumentation(String value)
value - The new valuepublic boolean isSetDocumentation()
public boolean isModifiedDocumentation()
@Nonnull public EnumType._Builder clearDocumentation()
public String getDocumentation()
@Nonnull public EnumType._Builder setName(String value)
value - The new valuepublic boolean isSetName()
public boolean isModifiedName()
@Nonnull public EnumType._Builder clearName()
public String getName()
@Nonnull public EnumType._Builder setValues(Collection<EnumValue> value)
value - The new value@Nonnull public EnumType._Builder addToValues(EnumValue... values)
values - The added valuepublic boolean isSetValues()
public boolean isModifiedValues()
@Nonnull public EnumType._Builder clearValues()
@Nonnull public List<EnumValue> mutableValues()
@Nonnull public EnumType._Builder setAnnotations(Map<String,String> value)
value - The new value@Nonnull public EnumType._Builder putInAnnotations(String key, String value)
key - The inserted keyvalue - The inserted valuepublic boolean isSetAnnotations()
public boolean isModifiedAnnotations()
@Nonnull public EnumType._Builder clearAnnotations()
@Nonnull public Map<String,String> mutableAnnotations()
public PMessageBuilder mutator(int key)
mutator in class PMessageBuilder<EnumType,EnumType._Field>@Nonnull public EnumType._Builder set(int key, Object value)
set in class PMessageBuilder<EnumType,EnumType._Field>public boolean isSet(int key)
isSet in class PMessageBuilder<EnumType,EnumType._Field>public boolean isModified(int key)
isModified in class PMessageBuilder<EnumType,EnumType._Field>public EnumType._Builder addTo(int key, Object value)
addTo in class PMessageBuilder<EnumType,EnumType._Field>@Nonnull public EnumType._Builder clear(int key)
clear in class PMessageBuilder<EnumType,EnumType._Field>public boolean valid()
valid in class PMessageBuilder<EnumType,EnumType._Field>public void validate()
validate in class PMessageBuilder<EnumType,EnumType._Field>@Nonnull public PStructDescriptor<EnumType,EnumType._Field> descriptor()
descriptor in class PMessageBuilder<EnumType,EnumType._Field>public void readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict)
throws IOException
readBinary in interface BinaryReaderIOExceptionCopyright © 2015–2017 morimekta.net. All rights reserved.