Package dk.mada.jaxrs.model.types
Class ImmutableTypeSet.Builder
java.lang.Object
dk.mada.jaxrs.model.types.ImmutableTypeSet.Builder
- Enclosing class:
ImmutableTypeSet
@Generated(from="TypeSet",
generator="Immutables")
public static final class ImmutableTypeSet.Builder
extends Object
Builds instances of type
ImmutableTypeSet.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableTypeSet.final ImmutableTypeSet.Builderfrom(TypeContainer instance) Fill a builder with attribute values from the provideddk.mada.jaxrs.model.types.TypeContainerinstance.final ImmutableTypeSet.BuilderFill a builder with attribute values from the provideddk.mada.jaxrs.model.types.TypeSetinstance.final ImmutableTypeSet.BuilderInitializes the value for theinnerTypeattribute.final ImmutableTypeSet.BuilderInitializes the value for thetypeNamesattribute.
-
Method Details
-
from
Fill a builder with attribute values from the provideddk.mada.jaxrs.model.types.TypeContainerinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the provideddk.mada.jaxrs.model.types.TypeSetinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
innerType
Initializes the value for theinnerTypeattribute.- Parameters:
innerType- The value for innerType- Returns:
thisbuilder for use in a chained invocation
-
typeNames
Initializes the value for thetypeNamesattribute.- Parameters:
typeNames- The value for typeNames- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableTypeSet.- Returns:
- An immutable instance of TypeSet
- Throws:
IllegalStateException- if any required attributes are missing
-