public static class EnumType._Builder extends PMessageBuilder<EnumType>
| 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 |
clearComment()
Clears the comment field.
|
EnumType._Builder |
clearName()
Clears the name field.
|
EnumType._Builder |
clearValues()
Clears the values field.
|
boolean |
isSetAnnotations()
Checks for presence of the annotations field.
|
boolean |
isSetComment()
Checks for presence of the comment field.
|
boolean |
isSetName()
Checks for presence of the name field.
|
boolean |
isSetValues()
Checks for presence of the values field.
|
boolean |
isValid() |
EnumType._Builder |
putInAnnotations(String key,
String value)
Adds a mapping to annotations.
|
EnumType._Builder |
set(int key,
Object value) |
EnumType._Builder |
setAnnotations(Map<String,String> value)
Sets the value of annotations.
|
EnumType._Builder |
setComment(String value)
Sets the value of comment.
|
EnumType._Builder |
setName(String value)
Sets the value of name.
|
EnumType._Builder |
setValues(Collection<EnumValue> value)
Sets the value of values.
|
public _Builder()
public _Builder(EnumType base)
base - The base EnumTypepublic EnumType._Builder setComment(String value)
value - The new valuepublic boolean isSetComment()
public EnumType._Builder clearComment()
public EnumType._Builder setName(String value)
value - The new valuepublic boolean isSetName()
public EnumType._Builder clearName()
public EnumType._Builder setValues(Collection<EnumValue> value)
value - The new valuepublic EnumType._Builder addToValues(EnumValue... values)
values - The added valuepublic boolean isSetValues()
public EnumType._Builder clearValues()
public EnumType._Builder setAnnotations(Map<String,String> value)
value - The new valuepublic EnumType._Builder putInAnnotations(String key, String value)
key - The inserted keyvalue - The inserted valuepublic boolean isSetAnnotations()
public EnumType._Builder clearAnnotations()
public EnumType._Builder set(int key, Object value)
set in class PMessageBuilder<EnumType>public EnumType._Builder addTo(int key, Object value)
addTo in class PMessageBuilder<EnumType>public EnumType._Builder clear(int key)
clear in class PMessageBuilder<EnumType>public boolean isValid()
isValid in class PMessageBuilder<EnumType>public EnumType build()
Copyright © 2016. All rights reserved.