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 java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringabsoluteprivate java.lang.StringabsoluteRawprivate java.lang.StringgenericArgsprivate static longINIT_BIT_PACKAGE_OFprivate static longINIT_BIT_RELATIVE_RAWprivate static longINIT_BIT_SIMPLEprivate static longINIT_BIT_VISIBILITYprivate longinitBitsprivate static longOPT_BIT_ABSOLUTEprivate static longOPT_BIT_ABSOLUTE_RAWprivate static longOPT_BIT_GENERIC_ARGSprivate static longOPT_BIT_RELATIVE_ALREADY_QUALIFIEDprivate longoptBitsprivate java.lang.StringpackageOfprivate booleanrelativeAlreadyQualifiedprivate java.lang.StringrelativeRawprivate java.lang.Stringsimpleprivate Visibilityvisibility
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableConstitution.NameForms.Builderabsolute(java.lang.String absolute)Initializes the value for theabsoluteattribute.private booleanabsoluteIsSet()ImmutableConstitution.NameForms.BuilderabsoluteRaw(java.lang.String absoluteRaw)Initializes the value for theabsoluteRawattribute.private booleanabsoluteRawIsSet()ImmutableConstitution.NameFormsbuild()Builds a newNameForms.private static voidcheckNotIsSet(boolean isSet, java.lang.String name)private voidcheckRequiredAttributes()private java.lang.StringformatRequiredAttributesMessage()ImmutableConstitution.NameForms.BuildergenericArgs(java.lang.String genericArgs)Initializes the value for thegenericArgsattribute.private booleangenericArgsIsSet()ImmutableConstitution.NameForms.BuilderpackageOf(java.lang.String packageOf)Initializes the value for thepackageOfattribute.private booleanpackageOfIsSet()ImmutableConstitution.NameForms.BuilderrelativeAlreadyQualified(boolean relativeAlreadyQualified)Initializes the value for therelativeAlreadyQualifiedattribute.private booleanrelativeAlreadyQualifiedIsSet()ImmutableConstitution.NameForms.BuilderrelativeRaw(java.lang.String relativeRaw)Initializes the value for therelativeRawattribute.private booleanrelativeRawIsSet()ImmutableConstitution.NameForms.Buildersimple(java.lang.String simple)Initializes the value for thesimpleattribute.private booleansimpleIsSet()ImmutableConstitution.NameForms.Buildervisibility(Visibility visibility)Initializes the value for thevisibilityattribute.private booleanvisibilityIsSet()
-
-
-
Field Detail
-
INIT_BIT_SIMPLE
private static final long INIT_BIT_SIMPLE
- See Also:
- Constant Field Values
-
INIT_BIT_RELATIVE_RAW
private static final long INIT_BIT_RELATIVE_RAW
- See Also:
- Constant Field Values
-
INIT_BIT_PACKAGE_OF
private static final long INIT_BIT_PACKAGE_OF
- See Also:
- Constant Field Values
-
INIT_BIT_VISIBILITY
private static final long INIT_BIT_VISIBILITY
- See Also:
- Constant Field Values
-
OPT_BIT_ABSOLUTE
private static final long OPT_BIT_ABSOLUTE
- See Also:
- Constant Field Values
-
OPT_BIT_ABSOLUTE_RAW
private static final long OPT_BIT_ABSOLUTE_RAW
- See Also:
- Constant Field Values
-
OPT_BIT_GENERIC_ARGS
private static final long OPT_BIT_GENERIC_ARGS
- See Also:
- Constant Field Values
-
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
-
-
Method Detail
-
simple
public final ImmutableConstitution.NameForms.Builder simple(java.lang.String simple)
Initializes the value for thesimpleattribute.- Parameters:
simple- The value for simple- Returns:
thisbuilder for use in a chained invocation
-
relativeRaw
public final ImmutableConstitution.NameForms.Builder relativeRaw(java.lang.String relativeRaw)
Initializes the value for therelativeRawattribute.- Parameters:
relativeRaw- The value for relativeRaw- Returns:
thisbuilder for use in a chained invocation
-
packageOf
public final ImmutableConstitution.NameForms.Builder packageOf(java.lang.String packageOf)
Initializes the value for thepackageOfattribute.- Parameters:
packageOf- The value for packageOf- Returns:
thisbuilder for use in a chained invocation
-
visibility
public final ImmutableConstitution.NameForms.Builder visibility(Visibility visibility)
Initializes the value for thevisibilityattribute.- Parameters:
visibility- The value for visibility- Returns:
thisbuilder for use in a chained invocation
-
absolute
public final ImmutableConstitution.NameForms.Builder absolute(java.lang.String absolute)
Initializes the value for theabsoluteattribute.If not set, this attribute will have a default value as returned by the initializer of
absolute.- Parameters:
absolute- The value for absolute- Returns:
thisbuilder for use in a chained invocation
-
absoluteRaw
public final ImmutableConstitution.NameForms.Builder absoluteRaw(java.lang.String absoluteRaw)
Initializes the value for theabsoluteRawattribute.If not set, this attribute will have a default value as returned by the initializer of
absoluteRaw.- Parameters:
absoluteRaw- The value for absoluteRaw- Returns:
thisbuilder for use in a chained invocation
-
genericArgs
public final ImmutableConstitution.NameForms.Builder genericArgs(java.lang.String genericArgs)
Initializes the value for thegenericArgsattribute.If not set, this attribute will have a default value as returned by the initializer of
genericArgs.- Parameters:
genericArgs- The value for genericArgs- Returns:
thisbuilder for use in a chained invocation
-
relativeAlreadyQualified
public final ImmutableConstitution.NameForms.Builder relativeAlreadyQualified(boolean relativeAlreadyQualified)
Initializes the value for therelativeAlreadyQualifiedattribute.If not set, this attribute will have a default value as returned by the initializer of
relativeAlreadyQualified.- Parameters:
relativeAlreadyQualified- The value for relativeAlreadyQualified- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableConstitution.NameForms build()
Builds a newNameForms.- 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()
-
-