Class ImmutableConstitution.AppliedNameForms.Builder
- java.lang.Object
-
- org.immutables.value.processor.meta.ImmutableConstitution.AppliedNameForms.Builder
-
- Enclosing class:
- ImmutableConstitution.AppliedNameForms
@NotThreadSafe public static final class ImmutableConstitution.AppliedNameForms.Builder extends java.lang.ObjectBuilds instances of typeAppliedNameForms. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringabsoluteprivate java.lang.StringabsoluteRawprivate java.lang.Stringappliedprivate Constitution.NameFormsformsprivate static longINIT_BIT_APPLIEDprivate static longINIT_BIT_FORMSprivate longinitBitsprivate static longOPT_BIT_ABSOLUTEprivate static longOPT_BIT_ABSOLUTE_RAWprivate longoptBits
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableConstitution.AppliedNameForms.Builderabsolute(java.lang.String absolute)Initializes the value for theabsoluteattribute.private booleanabsoluteIsSet()ImmutableConstitution.AppliedNameForms.BuilderabsoluteRaw(java.lang.String absoluteRaw)Initializes the value for theabsoluteRawattribute.private booleanabsoluteRawIsSet()ImmutableConstitution.AppliedNameForms.Builderapplied(java.lang.String applied)Initializes the value for theappliedattribute.private booleanappliedIsSet()ImmutableConstitution.AppliedNameFormsbuild()Builds a newAppliedNameForms.private static voidcheckNotIsSet(boolean isSet, java.lang.String name)private voidcheckRequiredAttributes()private java.lang.StringformatRequiredAttributesMessage()ImmutableConstitution.AppliedNameForms.Builderforms(Constitution.NameForms forms)Initializes the value for theformsattribute.private booleanformsIsSet()
-
-
-
Field Detail
-
INIT_BIT_FORMS
private static final long INIT_BIT_FORMS
- See Also:
- Constant Field Values
-
INIT_BIT_APPLIED
private static final long INIT_BIT_APPLIED
- 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
-
initBits
private long initBits
-
optBits
private long optBits
-
absolute
@Nullable private java.lang.String absolute
-
absoluteRaw
@Nullable private java.lang.String absoluteRaw
-
forms
@Nullable private Constitution.NameForms forms
-
applied
@Nullable private java.lang.String applied
-
-
Method Detail
-
absolute
public final ImmutableConstitution.AppliedNameForms.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.AppliedNameForms.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
-
forms
public final ImmutableConstitution.AppliedNameForms.Builder forms(Constitution.NameForms forms)
Initializes the value for theformsattribute.- Parameters:
forms- The value for forms- Returns:
thisbuilder for use in a chained invocation
-
applied
public final ImmutableConstitution.AppliedNameForms.Builder applied(java.lang.String applied)
Initializes the value for theappliedattribute.- Parameters:
applied- The value for applied- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableConstitution.AppliedNameForms build()
Builds a newAppliedNameForms.- Returns:
- An immutable instance of AppliedNameForms
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-
absoluteIsSet
private boolean absoluteIsSet()
-
absoluteRawIsSet
private boolean absoluteRawIsSet()
-
formsIsSet
private boolean formsIsSet()
-
appliedIsSet
private boolean appliedIsSet()
-
checkNotIsSet
private static void checkNotIsSet(boolean isSet, java.lang.String name)
-
checkRequiredAttributes
private void checkRequiredAttributes()
-
formatRequiredAttributesMessage
private java.lang.String formatRequiredAttributesMessage()
-
-