Class ImmutableConstitution.NameForms.Builder

java.lang.Object
org.immutables.value.processor.meta.ImmutableConstitution.NameForms.Builder
Enclosing class:
ImmutableConstitution.NameForms

@NotThreadSafe public static final class ImmutableConstitution.NameForms.Builder extends Object
Builds instances of type NameForms. 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.

  • Field Details

  • Constructor Details

    • Builder

      private Builder()
  • Method Details

    • simple

      public final ImmutableConstitution.NameForms.Builder simple(String simple)
      Initializes the value for the simple attribute.
      Parameters:
      simple - The value for simple
      Returns:
      this builder for use in a chained invocation
    • relativeRaw

      public final ImmutableConstitution.NameForms.Builder relativeRaw(String relativeRaw)
      Initializes the value for the relativeRaw attribute.
      Parameters:
      relativeRaw - The value for relativeRaw
      Returns:
      this builder for use in a chained invocation
    • packageOf

      public final ImmutableConstitution.NameForms.Builder packageOf(String packageOf)
      Initializes the value for the packageOf attribute.
      Parameters:
      packageOf - The value for packageOf
      Returns:
      this builder for use in a chained invocation
    • visibility

      public final ImmutableConstitution.NameForms.Builder visibility(Visibility visibility)
      Initializes the value for the visibility attribute.
      Parameters:
      visibility - The value for visibility
      Returns:
      this builder for use in a chained invocation
    • absolute

      public final ImmutableConstitution.NameForms.Builder absolute(String absolute)
      Initializes the value for the absolute attribute.

      If not set, this attribute will have a default value as returned by the initializer of absolute.

      Parameters:
      absolute - The value for absolute
      Returns:
      this builder for use in a chained invocation
    • absoluteRaw

      public final ImmutableConstitution.NameForms.Builder absoluteRaw(String absoluteRaw)
      Initializes the value for the absoluteRaw attribute.

      If not set, this attribute will have a default value as returned by the initializer of absoluteRaw.

      Parameters:
      absoluteRaw - The value for absoluteRaw
      Returns:
      this builder for use in a chained invocation
    • genericArgs

      public final ImmutableConstitution.NameForms.Builder genericArgs(String genericArgs)
      Initializes the value for the genericArgs attribute.

      If not set, this attribute will have a default value as returned by the initializer of genericArgs.

      Parameters:
      genericArgs - The value for genericArgs
      Returns:
      this builder for use in a chained invocation
    • relativeAlreadyQualified

      public final ImmutableConstitution.NameForms.Builder relativeAlreadyQualified(boolean relativeAlreadyQualified)
      Initializes the value for the relativeAlreadyQualified attribute.

      If not set, this attribute will have a default value as returned by the initializer of relativeAlreadyQualified.

      Parameters:
      relativeAlreadyQualified - The value for relativeAlreadyQualified
      Returns:
      this builder for use in a chained invocation
    • build

      Builds a new NameForms.
      Returns:
      An immutable instance of NameForms
      Throws:
      IllegalStateException - if any required attributes are missing
    • absoluteIsSet

      private boolean absoluteIsSet()
    • absoluteRawIsSet

      private boolean absoluteRawIsSet()
    • genericArgsIsSet

      private boolean genericArgsIsSet()
    • relativeAlreadyQualifiedIsSet

      private boolean relativeAlreadyQualifiedIsSet()
    • simpleIsSet

      private boolean simpleIsSet()
    • relativeRawIsSet

      private boolean relativeRawIsSet()
    • packageOfIsSet

      private boolean packageOfIsSet()
    • visibilityIsSet

      private boolean visibilityIsSet()
    • checkNotIsSet

      private static void checkNotIsSet(boolean isSet, String name)
    • checkRequiredAttributes

      private void checkRequiredAttributes()
    • formatRequiredAttributesMessage

      private String formatRequiredAttributesMessage()