Class ImmutableConstitution.NameForms.Builder

  • Enclosing class:
    ImmutableConstitution.NameForms

    @NotThreadSafe
    public static final class ImmutableConstitution.NameForms.Builder
    extends java.lang.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 Detail

      • OPT_BIT_RELATIVE_ALREADY_QUALIFIED

        private static final long OPT_BIT_RELATIVE_ALREADY_QUALIFIED
        See Also:
        Constant Field Values
      • initBits

        private long initBits
      • optBits

        private long optBits
      • simple

        @Nullable
        private java.lang.String simple
      • relativeRaw

        @Nullable
        private java.lang.String relativeRaw
      • packageOf

        @Nullable
        private java.lang.String packageOf
      • visibility

        @Nullable
        private Visibility visibility
      • absolute

        @Nullable
        private java.lang.String absolute
      • absoluteRaw

        @Nullable
        private java.lang.String absoluteRaw
      • genericArgs

        @Nullable
        private java.lang.String genericArgs
      • relativeAlreadyQualified

        private boolean relativeAlreadyQualified
    • Constructor Detail

      • Builder

        private Builder()
    • Method Detail

      • simple

        public final ImmutableConstitution.NameForms.Builder simple​(java.lang.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​(java.lang.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​(java.lang.String packageOf)
        Initializes the value for the packageOf attribute.
        Parameters:
        packageOf - The value for packageOf
        Returns:
        this builder for use in a chained invocation
      • absolute

        public final ImmutableConstitution.NameForms.Builder absolute​(java.lang.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​(java.lang.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​(java.lang.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

        public ImmutableConstitution.NameForms build()
        Builds a new NameForms.
        Returns:
        An immutable instance of NameForms
        Throws:
        java.lang.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,
                                          java.lang.String name)
      • checkRequiredAttributes

        private void checkRequiredAttributes()
      • formatRequiredAttributesMessage

        private java.lang.String formatRequiredAttributesMessage()