| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Datatype.Builder |
addAllGeneratedBuilderAnnotations(java.util.stream.BaseStream<? extends Excerpt,?> elements)
Adds each element of
elements to the list to be returned from Datatype.getGeneratedBuilderAnnotations(). |
Datatype.Builder |
addAllGeneratedBuilderAnnotations(java.lang.Iterable<? extends Excerpt> elements)
Adds each element of
elements to the list to be returned from Datatype.getGeneratedBuilderAnnotations(). |
Datatype.Builder |
addAllGeneratedBuilderAnnotations(java.util.Spliterator<? extends Excerpt> elements)
Adds each element of
elements to the list to be returned from Datatype.getGeneratedBuilderAnnotations(). |
Datatype.Builder |
addAllNestedClasses(java.util.stream.BaseStream<? extends Excerpt,?> elements)
Adds each element of
elements to the list to be returned from Datatype.getNestedClasses(). |
Datatype.Builder |
addAllNestedClasses(java.lang.Iterable<? extends Excerpt> elements)
Adds each element of
elements to the list to be returned from Datatype.getNestedClasses(). |
Datatype.Builder |
addAllNestedClasses(java.util.Spliterator<? extends Excerpt> elements)
Adds each element of
elements to the list to be returned from Datatype.getNestedClasses(). |
Datatype.Builder |
addAllValueTypeAnnotations(java.util.stream.BaseStream<? extends Excerpt,?> elements)
Adds each element of
elements to the list to be returned from Datatype.getValueTypeAnnotations(). |
Datatype.Builder |
addAllValueTypeAnnotations(java.lang.Iterable<? extends Excerpt> elements)
Adds each element of
elements to the list to be returned from Datatype.getValueTypeAnnotations(). |
Datatype.Builder |
addAllValueTypeAnnotations(java.util.Spliterator<? extends Excerpt> elements)
Adds each element of
elements to the list to be returned from Datatype.getValueTypeAnnotations(). |
Datatype.Builder |
addGeneratedBuilderAnnotations(Excerpt... elements)
Adds each element of
elements to the list to be returned from Datatype.getGeneratedBuilderAnnotations(). |
Datatype.Builder |
addGeneratedBuilderAnnotations(Excerpt element)
Adds
element to the list to be returned from Datatype.getGeneratedBuilderAnnotations(). |
Datatype.Builder |
addNestedClasses(Excerpt... elements)
Adds each element of
elements to the list to be returned from Datatype.getNestedClasses(). |
Datatype.Builder |
addNestedClasses(Excerpt element)
Adds
element to the list to be returned from Datatype.getNestedClasses(). |
Datatype.Builder |
addValueTypeAnnotations(Excerpt... elements)
Adds each element of
elements to the list to be returned from Datatype.getValueTypeAnnotations(). |
Datatype.Builder |
addValueTypeAnnotations(Excerpt element)
Adds
element to the list to be returned from Datatype.getValueTypeAnnotations(). |
Datatype |
build()
Returns a newly-built
Datatype based on the content of the Builder. |
Datatype |
buildPartial()
Returns a newly-created partial
Datatype for use in unit tests. |
Datatype.Builder |
clear()
Resets the state of this builder.
|
Datatype.Builder |
clearBuilderFactory()
Sets the value to be returned by
Datatype.getBuilderFactory() to Optional.empty(). |
Datatype.Builder |
clearGeneratedBuilderAnnotations()
Clears the list to be returned from
Datatype.getGeneratedBuilderAnnotations(). |
Datatype.Builder |
clearNestedClasses()
Clears the list to be returned from
Datatype.getNestedClasses(). |
Datatype.Builder |
clearStandardMethodUnderrides()
Removes all of the mappings from the map to be returned from
Datatype.getStandardMethodUnderrides(). |
Datatype.Builder |
clearValueTypeAnnotations()
Clears the list to be returned from
Datatype.getValueTypeAnnotations(). |
static Datatype.Builder |
from(Datatype value)
Creates a new builder using
value as a template. |
Type |
getBuilder()
Returns the value that will be returned by
Datatype.getBuilder(). |
java.util.Optional<BuilderFactory> |
getBuilderFactory()
Returns the value that will be returned by
Datatype.getBuilderFactory(). |
TypeClass |
getGeneratedBuilder()
Returns the value that will be returned by
Datatype.getGeneratedBuilder(). |
java.util.List<Excerpt> |
getGeneratedBuilderAnnotations()
Returns an unmodifiable view of the list that will be returned by
Datatype.getGeneratedBuilderAnnotations(). |
boolean |
getHasToBuilderMethod()
Returns the value that will be returned by
Datatype.getHasToBuilderMethod(). |
java.util.List<Excerpt> |
getNestedClasses()
Returns an unmodifiable view of the list that will be returned by
Datatype.getNestedClasses(). |
TypeClass |
getPartialType()
Returns the value that will be returned by
Datatype.getPartialType(). |
TypeClass |
getPropertyEnum()
Returns the value that will be returned by
Datatype.getPropertyEnum(). |
java.util.Map<Datatype.StandardMethod,Datatype.UnderrideLevel> |
getStandardMethodUnderrides()
Returns an unmodifiable view of the map that will be returned by
Datatype.getStandardMethodUnderrides(). |
TypeClass |
getType()
Returns the value that will be returned by
Datatype.getType(). |
TypeClass |
getValueType()
Returns the value that will be returned by
Datatype.getValueType(). |
java.util.List<Excerpt> |
getValueTypeAnnotations()
Returns an unmodifiable view of the list that will be returned by
Datatype.getValueTypeAnnotations(). |
Datatype.Visibility |
getValueTypeVisibility()
Returns the value that will be returned by
Datatype.getValueTypeVisibility(). |
boolean |
isBuilderSerializable()
Returns the value that will be returned by
Datatype.isBuilderSerializable(). |
boolean |
isExtensible()
Returns the value that will be returned by
Datatype.isExtensible(). |
boolean |
isInterfaceType()
Returns the value that will be returned by
Datatype.isInterfaceType(). |
Datatype.Builder |
mapBuilder(java.util.function.UnaryOperator<Type> mapper)
Replaces the value to be returned by
Datatype.getBuilder() by applying mapper
to it and using the result. |
Datatype.Builder |
mapBuilderFactory(java.util.function.UnaryOperator<BuilderFactory> mapper)
If the value to be returned by
Datatype.getBuilderFactory() is present, replaces it by
applying mapper to it and using the result. |
Datatype.Builder |
mapBuilderSerializable(java.util.function.UnaryOperator<java.lang.Boolean> mapper)
Replaces the value to be returned by
Datatype.isBuilderSerializable() by applying
mapper to it and using the result. |
Datatype.Builder |
mapExtensible(java.util.function.UnaryOperator<java.lang.Boolean> mapper)
Replaces the value to be returned by
Datatype.isExtensible() by applying mapper
to it and using the result. |
Datatype.Builder |
mapGeneratedBuilder(java.util.function.UnaryOperator<TypeClass> mapper)
Replaces the value to be returned by
Datatype.getGeneratedBuilder() by applying mapper to it and using the result. |
Datatype.Builder |
mapHasToBuilderMethod(java.util.function.UnaryOperator<java.lang.Boolean> mapper)
Replaces the value to be returned by
Datatype.getHasToBuilderMethod() by applying
mapper to it and using the result. |
Datatype.Builder |
mapInterfaceType(java.util.function.UnaryOperator<java.lang.Boolean> mapper)
Replaces the value to be returned by
Datatype.isInterfaceType() by applying mapper to it and using the result. |
Datatype.Builder |
mapPartialType(java.util.function.UnaryOperator<TypeClass> mapper)
Replaces the value to be returned by
Datatype.getPartialType() by applying mapper to it and using the result. |
Datatype.Builder |
mapPropertyEnum(java.util.function.UnaryOperator<TypeClass> mapper)
Replaces the value to be returned by
Datatype.getPropertyEnum() by applying mapper to it and using the result. |
Datatype.Builder |
mapType(java.util.function.UnaryOperator<TypeClass> mapper)
Replaces the value to be returned by
Datatype.getType() by applying mapper to
it and using the result. |
Datatype.Builder |
mapValueType(java.util.function.UnaryOperator<TypeClass> mapper)
Replaces the value to be returned by
Datatype.getValueType() by applying mapper
to it and using the result. |
Datatype.Builder |
mapValueTypeVisibility(java.util.function.UnaryOperator<Datatype.Visibility> mapper)
Replaces the value to be returned by
Datatype.getValueTypeVisibility() by applying
mapper to it and using the result. |
Datatype.Builder |
mergeFrom(Datatype.Builder template)
Copies values from the given
Builder. |
Datatype.Builder |
mergeFrom(Datatype value)
Sets all property values using the given
Datatype as a template. |
Datatype.Builder |
mutateGeneratedBuilderAnnotations(java.util.function.Consumer<? super java.util.List<Excerpt>> mutator)
Applies
mutator to the list to be returned from Datatype.getGeneratedBuilderAnnotations(). |
Datatype.Builder |
mutateNestedClasses(java.util.function.Consumer<? super java.util.List<Excerpt>> mutator)
Applies
mutator to the list to be returned from Datatype.getNestedClasses(). |
Datatype.Builder |
mutateStandardMethodUnderrides(java.util.function.Consumer<? super java.util.Map<Datatype.StandardMethod,Datatype.UnderrideLevel>> mutator)
Invokes
mutator with the map to be returned from Datatype.getStandardMethodUnderrides(). |
Datatype.Builder |
mutateValueTypeAnnotations(java.util.function.Consumer<? super java.util.List<Excerpt>> mutator)
Applies
mutator to the list to be returned from Datatype.getValueTypeAnnotations(). |
Datatype.Builder |
putAllStandardMethodUnderrides(java.util.Map<? extends Datatype.StandardMethod,? extends Datatype.UnderrideLevel> map)
Copies all of the mappings from
map to the map to be returned from Datatype.getStandardMethodUnderrides(). |
Datatype.Builder |
putStandardMethodUnderrides(Datatype.StandardMethod key,
Datatype.UnderrideLevel value)
|
Datatype.Builder |
removeStandardMethodUnderrides(Datatype.StandardMethod key)
Removes the mapping for
key from the map to be returned from Datatype.getStandardMethodUnderrides(), if one is present. |
Datatype.Builder |
setBuilder(Type builder)
Sets the value to be returned by
Datatype.getBuilder(). |
Datatype.Builder |
setBuilderFactory(BuilderFactory builderFactory)
Sets the value to be returned by
Datatype.getBuilderFactory(). |
Datatype.Builder |
setBuilderFactory(java.util.Optional<? extends BuilderFactory> builderFactory)
Sets the value to be returned by
Datatype.getBuilderFactory(). |
Datatype.Builder |
setBuilderSerializable(boolean builderSerializable)
Sets the value to be returned by
Datatype.isBuilderSerializable(). |
Datatype.Builder |
setExtensible(boolean extensible)
Sets the value to be returned by
Datatype.isExtensible(). |
Datatype.Builder |
setGeneratedBuilder(TypeClass generatedBuilder)
Sets the value to be returned by
Datatype.getGeneratedBuilder(). |
Datatype.Builder |
setHasToBuilderMethod(boolean hasToBuilderMethod)
Sets the value to be returned by
Datatype.getHasToBuilderMethod(). |
Datatype.Builder |
setInterfaceType(boolean interfaceType)
Sets the value to be returned by
Datatype.isInterfaceType(). |
Datatype.Builder |
setNullableBuilderFactory(BuilderFactory builderFactory)
Sets the value to be returned by
Datatype.getBuilderFactory(). |
Datatype.Builder |
setPartialType(TypeClass partialType)
Sets the value to be returned by
Datatype.getPartialType(). |
Datatype.Builder |
setPropertyEnum(TypeClass propertyEnum)
Sets the value to be returned by
Datatype.getPropertyEnum(). |
Datatype.Builder |
setType(TypeClass type)
Sets the value to be returned by
Datatype.getType(). |
Datatype.Builder |
setValueType(TypeClass valueType)
Sets the value to be returned by
Datatype.getValueType(). |
Datatype.Builder |
setValueTypeVisibility(Datatype.Visibility visibility)
Sets the value to be returned by
Datatype.getValueTypeVisibility() to the most
visible of the current value and visibility. |
public Datatype.Builder setValueTypeVisibility(Datatype.Visibility visibility)
Datatype.getValueTypeVisibility() to the most
visible of the current value and visibility. Will not decrease visibility.Builder objectjava.lang.NullPointerException - if visibility is nullpublic static Datatype.Builder from(Datatype value)
value as a template.public Datatype.Builder setType(TypeClass type)
Datatype.getType().Builder objectjava.lang.NullPointerException - if type is nullpublic Datatype.Builder mapType(java.util.function.UnaryOperator<TypeClass> mapper)
Datatype.getType() by applying mapper to
it and using the result.Builder objectjava.lang.NullPointerException - if mapper is null or returns nulljava.lang.IllegalStateException - if the field has not been setpublic TypeClass getType()
Datatype.getType().java.lang.IllegalStateException - if the field has not been setpublic Datatype.Builder setInterfaceType(boolean interfaceType)
Datatype.isInterfaceType().Builder objectpublic Datatype.Builder mapInterfaceType(java.util.function.UnaryOperator<java.lang.Boolean> mapper)
Datatype.isInterfaceType() by applying mapper to it and using the result.Builder objectjava.lang.NullPointerException - if mapper is null or returns nulljava.lang.IllegalStateException - if the field has not been setpublic boolean isInterfaceType()
Datatype.isInterfaceType().java.lang.IllegalStateException - if the field has not been setpublic Datatype.Builder setBuilder(Type builder)
Datatype.getBuilder().Builder objectjava.lang.NullPointerException - if builder is nullpublic Datatype.Builder mapBuilder(java.util.function.UnaryOperator<Type> mapper)
Datatype.getBuilder() by applying mapper
to it and using the result.Builder objectjava.lang.NullPointerException - if mapper is null or returns nulljava.lang.IllegalStateException - if the field has not been setpublic Type getBuilder()
Datatype.getBuilder().java.lang.IllegalStateException - if the field has not been setpublic Datatype.Builder setExtensible(boolean extensible)
Datatype.isExtensible().Builder objectpublic Datatype.Builder mapExtensible(java.util.function.UnaryOperator<java.lang.Boolean> mapper)
Datatype.isExtensible() by applying mapper
to it and using the result.Builder objectjava.lang.NullPointerException - if mapper is null or returns nulljava.lang.IllegalStateException - if the field has not been setpublic boolean isExtensible()
Datatype.isExtensible().java.lang.IllegalStateException - if the field has not been setpublic Datatype.Builder setBuilderFactory(BuilderFactory builderFactory)
Datatype.getBuilderFactory().Builder objectjava.lang.NullPointerException - if builderFactory is nullpublic Datatype.Builder setBuilderFactory(java.util.Optional<? extends BuilderFactory> builderFactory)
Datatype.getBuilderFactory().Builder objectpublic Datatype.Builder setNullableBuilderFactory(BuilderFactory builderFactory)
Datatype.getBuilderFactory().Builder objectpublic Datatype.Builder mapBuilderFactory(java.util.function.UnaryOperator<BuilderFactory> mapper)
Datatype.getBuilderFactory() is present, replaces it by
applying mapper to it and using the result.
If the result is null, clears the value.
Builder objectjava.lang.NullPointerException - if mapper is nullpublic Datatype.Builder clearBuilderFactory()
Datatype.getBuilderFactory() to Optional.empty().Builder objectpublic java.util.Optional<BuilderFactory> getBuilderFactory()
Datatype.getBuilderFactory().public Datatype.Builder setGeneratedBuilder(TypeClass generatedBuilder)
Datatype.getGeneratedBuilder().Builder objectjava.lang.NullPointerException - if generatedBuilder is nullpublic Datatype.Builder mapGeneratedBuilder(java.util.function.UnaryOperator<TypeClass> mapper)
Datatype.getGeneratedBuilder() by applying mapper to it and using the result.Builder objectjava.lang.NullPointerException - if mapper is null or returns nulljava.lang.IllegalStateException - if the field has not been setpublic TypeClass getGeneratedBuilder()
Datatype.getGeneratedBuilder().java.lang.IllegalStateException - if the field has not been setpublic Datatype.Builder setValueType(TypeClass valueType)
Datatype.getValueType().Builder objectjava.lang.NullPointerException - if valueType is nullpublic Datatype.Builder mapValueType(java.util.function.UnaryOperator<TypeClass> mapper)
Datatype.getValueType() by applying mapper
to it and using the result.Builder objectjava.lang.NullPointerException - if mapper is null or returns nulljava.lang.IllegalStateException - if the field has not been setpublic TypeClass getValueType()
Datatype.getValueType().java.lang.IllegalStateException - if the field has not been setpublic Datatype.Builder setPartialType(TypeClass partialType)
Datatype.getPartialType().Builder objectjava.lang.NullPointerException - if partialType is nullpublic Datatype.Builder mapPartialType(java.util.function.UnaryOperator<TypeClass> mapper)
Datatype.getPartialType() by applying mapper to it and using the result.Builder objectjava.lang.NullPointerException - if mapper is null or returns nulljava.lang.IllegalStateException - if the field has not been setpublic TypeClass getPartialType()
Datatype.getPartialType().java.lang.IllegalStateException - if the field has not been setpublic Datatype.Builder setPropertyEnum(TypeClass propertyEnum)
Datatype.getPropertyEnum().Builder objectjava.lang.NullPointerException - if propertyEnum is nullpublic Datatype.Builder mapPropertyEnum(java.util.function.UnaryOperator<TypeClass> mapper)
Datatype.getPropertyEnum() by applying mapper to it and using the result.Builder objectjava.lang.NullPointerException - if mapper is null or returns nulljava.lang.IllegalStateException - if the field has not been setpublic TypeClass getPropertyEnum()
Datatype.getPropertyEnum().java.lang.IllegalStateException - if the field has not been setpublic Datatype.Builder putStandardMethodUnderrides(Datatype.StandardMethod key, Datatype.UnderrideLevel value)
key with value in the map to be returned from Datatype.getStandardMethodUnderrides(). If the map previously contained a mapping for the key,
the old value is replaced by the specified value.Builder objectjava.lang.NullPointerException - if either key or value are nullpublic Datatype.Builder putAllStandardMethodUnderrides(java.util.Map<? extends Datatype.StandardMethod,? extends Datatype.UnderrideLevel> map)
map to the map to be returned from Datatype.getStandardMethodUnderrides().Builder objectjava.lang.NullPointerException - if map is null or contains a null key or valuepublic Datatype.Builder removeStandardMethodUnderrides(Datatype.StandardMethod key)
key from the map to be returned from Datatype.getStandardMethodUnderrides(), if one is present.Builder objectjava.lang.NullPointerException - if key is nullpublic Datatype.Builder mutateStandardMethodUnderrides(java.util.function.Consumer<? super java.util.Map<Datatype.StandardMethod,Datatype.UnderrideLevel>> mutator)
mutator with the map to be returned from Datatype.getStandardMethodUnderrides().
This method mutates the map in-place. mutator is a void consumer, so any value
returned from a lambda will be ignored. Take care not to call pure functions, like Collection.stream().
Builder objectjava.lang.NullPointerException - if mutator is nullpublic Datatype.Builder clearStandardMethodUnderrides()
Datatype.getStandardMethodUnderrides().Builder objectpublic java.util.Map<Datatype.StandardMethod,Datatype.UnderrideLevel> getStandardMethodUnderrides()
Datatype.getStandardMethodUnderrides(). Changes to this builder will be reflected in the view.public Datatype.Builder setBuilderSerializable(boolean builderSerializable)
Datatype.isBuilderSerializable().Builder objectpublic Datatype.Builder mapBuilderSerializable(java.util.function.UnaryOperator<java.lang.Boolean> mapper)
Datatype.isBuilderSerializable() by applying
mapper to it and using the result.Builder objectjava.lang.NullPointerException - if mapper is null or returns nulljava.lang.IllegalStateException - if the field has not been setpublic boolean isBuilderSerializable()
Datatype.isBuilderSerializable().java.lang.IllegalStateException - if the field has not been setpublic Datatype.Builder setHasToBuilderMethod(boolean hasToBuilderMethod)
Datatype.getHasToBuilderMethod().Builder objectpublic Datatype.Builder mapHasToBuilderMethod(java.util.function.UnaryOperator<java.lang.Boolean> mapper)
Datatype.getHasToBuilderMethod() by applying
mapper to it and using the result.Builder objectjava.lang.NullPointerException - if mapper is null or returns nulljava.lang.IllegalStateException - if the field has not been setpublic boolean getHasToBuilderMethod()
Datatype.getHasToBuilderMethod().java.lang.IllegalStateException - if the field has not been setpublic Datatype.Builder addGeneratedBuilderAnnotations(Excerpt element)
element to the list to be returned from Datatype.getGeneratedBuilderAnnotations().Builder objectjava.lang.NullPointerException - if element is nullpublic Datatype.Builder addGeneratedBuilderAnnotations(Excerpt... elements)
elements to the list to be returned from Datatype.getGeneratedBuilderAnnotations().Builder objectjava.lang.NullPointerException - if elements is null or contains a null elementpublic Datatype.Builder addAllGeneratedBuilderAnnotations(java.util.Spliterator<? extends Excerpt> elements)
elements to the list to be returned from Datatype.getGeneratedBuilderAnnotations().Builder objectjava.lang.NullPointerException - if elements is null or contains a null elementpublic Datatype.Builder addAllGeneratedBuilderAnnotations(java.util.stream.BaseStream<? extends Excerpt,?> elements)
elements to the list to be returned from Datatype.getGeneratedBuilderAnnotations().Builder objectjava.lang.NullPointerException - if elements is null or contains a null elementpublic Datatype.Builder addAllGeneratedBuilderAnnotations(java.lang.Iterable<? extends Excerpt> elements)
elements to the list to be returned from Datatype.getGeneratedBuilderAnnotations().Builder objectjava.lang.NullPointerException - if elements is null or contains a null elementpublic Datatype.Builder mutateGeneratedBuilderAnnotations(java.util.function.Consumer<? super java.util.List<Excerpt>> mutator)
mutator to the list to be returned from Datatype.getGeneratedBuilderAnnotations().
This method mutates the list in-place. mutator is a void consumer, so any value
returned from a lambda will be ignored. Take care not to call pure functions, like Collection.stream().
Builder objectjava.lang.NullPointerException - if mutator is nullpublic Datatype.Builder clearGeneratedBuilderAnnotations()
Datatype.getGeneratedBuilderAnnotations().Builder objectpublic java.util.List<Excerpt> getGeneratedBuilderAnnotations()
Datatype.getGeneratedBuilderAnnotations(). Changes to this builder will be reflected in the
view.public Datatype.Builder addValueTypeAnnotations(Excerpt element)
element to the list to be returned from Datatype.getValueTypeAnnotations().Builder objectjava.lang.NullPointerException - if element is nullpublic Datatype.Builder addValueTypeAnnotations(Excerpt... elements)
elements to the list to be returned from Datatype.getValueTypeAnnotations().Builder objectjava.lang.NullPointerException - if elements is null or contains a null elementpublic Datatype.Builder addAllValueTypeAnnotations(java.util.Spliterator<? extends Excerpt> elements)
elements to the list to be returned from Datatype.getValueTypeAnnotations().Builder objectjava.lang.NullPointerException - if elements is null or contains a null elementpublic Datatype.Builder addAllValueTypeAnnotations(java.util.stream.BaseStream<? extends Excerpt,?> elements)
elements to the list to be returned from Datatype.getValueTypeAnnotations().Builder objectjava.lang.NullPointerException - if elements is null or contains a null elementpublic Datatype.Builder addAllValueTypeAnnotations(java.lang.Iterable<? extends Excerpt> elements)
elements to the list to be returned from Datatype.getValueTypeAnnotations().Builder objectjava.lang.NullPointerException - if elements is null or contains a null elementpublic Datatype.Builder mutateValueTypeAnnotations(java.util.function.Consumer<? super java.util.List<Excerpt>> mutator)
mutator to the list to be returned from Datatype.getValueTypeAnnotations().
This method mutates the list in-place. mutator is a void consumer, so any value
returned from a lambda will be ignored. Take care not to call pure functions, like Collection.stream().
Builder objectjava.lang.NullPointerException - if mutator is nullpublic Datatype.Builder clearValueTypeAnnotations()
Datatype.getValueTypeAnnotations().Builder objectpublic java.util.List<Excerpt> getValueTypeAnnotations()
Datatype.getValueTypeAnnotations(). Changes to this builder will be reflected in the view.public Datatype.Builder mapValueTypeVisibility(java.util.function.UnaryOperator<Datatype.Visibility> mapper)
Datatype.getValueTypeVisibility() by applying
mapper to it and using the result.Builder objectjava.lang.NullPointerException - if mapper is null or returns nulljava.lang.IllegalStateException - if the field has not been setpublic Datatype.Visibility getValueTypeVisibility()
Datatype.getValueTypeVisibility().java.lang.IllegalStateException - if the field has not been setpublic Datatype.Builder addNestedClasses(Excerpt element)
element to the list to be returned from Datatype.getNestedClasses().Builder objectjava.lang.NullPointerException - if element is nullpublic Datatype.Builder addNestedClasses(Excerpt... elements)
elements to the list to be returned from Datatype.getNestedClasses().Builder objectjava.lang.NullPointerException - if elements is null or contains a null elementpublic Datatype.Builder addAllNestedClasses(java.util.Spliterator<? extends Excerpt> elements)
elements to the list to be returned from Datatype.getNestedClasses().Builder objectjava.lang.NullPointerException - if elements is null or contains a null elementpublic Datatype.Builder addAllNestedClasses(java.util.stream.BaseStream<? extends Excerpt,?> elements)
elements to the list to be returned from Datatype.getNestedClasses().Builder objectjava.lang.NullPointerException - if elements is null or contains a null elementpublic Datatype.Builder addAllNestedClasses(java.lang.Iterable<? extends Excerpt> elements)
elements to the list to be returned from Datatype.getNestedClasses().Builder objectjava.lang.NullPointerException - if elements is null or contains a null elementpublic Datatype.Builder mutateNestedClasses(java.util.function.Consumer<? super java.util.List<Excerpt>> mutator)
mutator to the list to be returned from Datatype.getNestedClasses().
This method mutates the list in-place. mutator is a void consumer, so any value
returned from a lambda will be ignored. Take care not to call pure functions, like Collection.stream().
Builder objectjava.lang.NullPointerException - if mutator is nullpublic Datatype.Builder clearNestedClasses()
Datatype.getNestedClasses().Builder objectpublic java.util.List<Excerpt> getNestedClasses()
Datatype.getNestedClasses(). Changes to this builder will be reflected in the view.public Datatype.Builder mergeFrom(Datatype value)
Datatype as a template.public Datatype.Builder mergeFrom(Datatype.Builder template)
Builder. Does not affect any properties not set on the
input.public Datatype.Builder clear()
public Datatype buildPartial()
Datatype for use in unit tests. State checking will not
be performed. Unset properties will throw an UnsupportedOperationException when
accessed via the partial object.
Partials should only ever be used in tests. They permit writing robust test cases that won't fail if this type gains more application-level constraints (e.g. new required fields) in future. If you require partially complete values in production code, consider using a Builder.