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 Details

    • from

      public final ImmutableTypeReference.Builder from(TypeReference instance)
      Fill a builder with attribute values from the provided dk.mada.jaxrs.model.types.TypeReference instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final ImmutableTypeReference.Builder from(Reference instance)
      Fill a builder with attribute values from the provided dk.mada.jaxrs.model.types.Reference instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • validation

      public final ImmutableTypeReference.Builder validation(Validation validation)
      Initializes the value for the validation attribute.
      Parameters:
      validation - The value for validation
      Returns:
      this builder for use in a chained invocation
    • refType

      public final ImmutableTypeReference.Builder refType(Type refType)
      Initializes the value for the refType attribute.
      Parameters:
      refType - The value for refType
      Returns:
      this builder for use in a chained invocation
    • build

      public ImmutableTypeReference build()
      Returns:
      An immutable instance of TypeReference
      Throws:
      IllegalStateException - if any required attributes are missing