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 Object
Builds instances of type
AppliedNameForms.
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 Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate Stringprivate Constitution.NameFormsprivate static final longprivate static final longprivate longprivate static final longprivate static final longprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInitializes the value for theabsoluteattribute.private booleanabsoluteRaw(String absoluteRaw) Initializes the value for theabsoluteRawattribute.private booleanInitializes the value for theappliedattribute.private booleanbuild()Builds a newAppliedNameForms.private static voidcheckNotIsSet(boolean isSet, String name) private voidprivate Stringforms(Constitution.NameForms forms) Initializes the value for theformsattribute.private boolean
-
Field Details
-
INIT_BIT_FORMS
private static final long INIT_BIT_FORMS- See Also:
-
INIT_BIT_APPLIED
private static final long INIT_BIT_APPLIED- See Also:
-
OPT_BIT_ABSOLUTE
private static final long OPT_BIT_ABSOLUTE- See Also:
-
OPT_BIT_ABSOLUTE_RAW
private static final long OPT_BIT_ABSOLUTE_RAW- See Also:
-
initBits
private long initBits -
optBits
private long optBits -
absolute
-
absoluteRaw
-
forms
-
applied
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
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
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
Initializes the value for theformsattribute.- Parameters:
forms- The value for forms- Returns:
thisbuilder for use in a chained invocation
-
applied
Initializes the value for theappliedattribute.- Parameters:
applied- The value for applied- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newAppliedNameForms.- Returns:
- An immutable instance of AppliedNameForms
- Throws:
IllegalStateException- if any required attributes are missing
-
absoluteIsSet
private boolean absoluteIsSet() -
absoluteRawIsSet
private boolean absoluteRawIsSet() -
formsIsSet
private boolean formsIsSet() -
appliedIsSet
private boolean appliedIsSet() -
checkNotIsSet
-
checkRequiredAttributes
private void checkRequiredAttributes() -
formatRequiredAttributesMessage
-