Package dk.mada.jaxrs.model.types
Class ImmutableTypeReference.Builder
java.lang.Object
dk.mada.jaxrs.model.types.ImmutableTypeReference.Builder
- Enclosing class:
ImmutableTypeReference
@Generated(from="TypeReference",
generator="Immutables")
public static final class ImmutableTypeReference.Builder
extends Object
Builds instances of type
ImmutableTypeReference.
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 newImmutableTypeReference.Fill a builder with attribute values from the provideddk.mada.jaxrs.model.types.Referenceinstance.from(TypeReference instance) Fill a builder with attribute values from the provideddk.mada.jaxrs.model.types.TypeReferenceinstance.Initializes the value for therefTypeattribute.validation(Validation validation) Initializes the value for thevalidationattribute.
-
Method Details
-
from
Fill a builder with attribute values from the provideddk.mada.jaxrs.model.types.TypeReferenceinstance.- 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.Referenceinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
validation
Initializes the value for thevalidationattribute.- Parameters:
validation- The value for validation- Returns:
thisbuilder for use in a chained invocation
-
refType
Initializes the value for therefTypeattribute.- Parameters:
refType- The value for refType- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableTypeReference.- Returns:
- An immutable instance of TypeReference
- Throws:
IllegalStateException- if any required attributes are missing
-