Class ImmutableConstitution.AppliedNameForms
java.lang.Object
org.immutables.value.processor.meta.Constitution.AbstractNameForms
org.immutables.value.processor.meta.Constitution.AppliedNameForms
org.immutables.value.processor.meta.ImmutableConstitution.AppliedNameForms
- Enclosing class:
ImmutableConstitution
@Immutable
public static final class ImmutableConstitution.AppliedNameForms
extends Constitution.AppliedNameForms
Immutable implementation of
Constitution.AppliedNameForms.
Use the builder to create immutable instances:
ImmutableConstitution.AppliedNameForms.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeAppliedNameForms.private final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final Stringprivate final Stringprivate final Constitution.NameFormsprivate final booleanprivate final Stringprivate static final byteprivate static final byteprivate static final byte -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateAppliedNameForms(String absolute, String absoluteRaw, Constitution.NameForms forms, String applied) private -
Method Summary
Modifier and TypeMethodDescriptionabsolute()applied()builder()Creates a builder forAppliedNameForms.copyOf(Constitution.AppliedNameForms instance) Creates an immutable copy of aConstitution.AppliedNameFormsvalue.booleanThis instance is equal to all instances ofAppliedNameFormsthat have equal attribute values.private booleanequalTo(int synthetic, ImmutableConstitution.AppliedNameForms another) forms()inthashCode()Computes a hash code from attributes:absolute,absoluteRaw,forms,applied,simple,isNew.booleanisNew()simple()withAbsolute(String value) Copy the current immutable object by setting a value for theabsoluteattribute.withAbsoluteRaw(String value) Copy the current immutable object by setting a value for theabsoluteRawattribute.withApplied(String value) Copy the current immutable object by setting a value for theappliedattribute.withForms(Constitution.NameForms value) Copy the current immutable object by setting a value for theformsattribute.Methods inherited from class org.immutables.value.processor.meta.Constitution.AppliedNameForms
genericArgs, packageOf, relative, relativeAlreadyQualified, relativeRaw, toString, visibilityMethods inherited from class org.immutables.value.processor.meta.Constitution.AbstractNameForms
access, qualifyWithPackage
-
Field Details
-
absolute
-
absoluteRaw
-
forms
-
applied
-
simple
-
isNew
private final transient boolean isNew -
STAGE_INITIALIZING
private static final byte STAGE_INITIALIZING- See Also:
-
STAGE_UNINITIALIZED
private static final byte STAGE_UNINITIALIZED- See Also:
-
STAGE_INITIALIZED
private static final byte STAGE_INITIALIZED- See Also:
-
initShim
-
-
Constructor Details
-
AppliedNameForms
-
AppliedNameForms
private AppliedNameForms(String absolute, String absoluteRaw, Constitution.NameForms forms, String applied)
-
-
Method Details
-
absolute
- Overrides:
absolutein classConstitution.AbstractNameForms- Returns:
- The value of the
absoluteattribute
-
absoluteRaw
- Overrides:
absoluteRawin classConstitution.AbstractNameForms- Returns:
- The value of the
absoluteRawattribute
-
forms
- Specified by:
formsin classConstitution.AppliedNameForms- Returns:
- The value of the
formsattribute
-
applied
- Specified by:
appliedin classConstitution.AppliedNameForms- Returns:
- The value of the
appliedattribute
-
simple
- Overrides:
simplein classConstitution.AppliedNameForms- Returns:
- The computed-at-construction value of the
simpleattribute
-
isNew
public boolean isNew()- Overrides:
isNewin classConstitution.AppliedNameForms- Returns:
- The computed-at-construction value of the
isNewattribute
-
withAbsolute
Copy the current immutable object by setting a value for theabsoluteattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for absolute- Returns:
- A modified copy of the
thisobject
-
withAbsoluteRaw
Copy the current immutable object by setting a value for theabsoluteRawattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for absoluteRaw- Returns:
- A modified copy of the
thisobject
-
withForms
Copy the current immutable object by setting a value for theformsattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for forms- Returns:
- A modified copy of the
thisobject
-
withApplied
Copy the current immutable object by setting a value for theappliedattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for applied- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofAppliedNameFormsthat have equal attribute values. -
equalTo
-
hashCode
public int hashCode()Computes a hash code from attributes:absolute,absoluteRaw,forms,applied,simple,isNew. -
copyOf
Creates an immutable copy of aConstitution.AppliedNameFormsvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable AppliedNameForms instance
-
builder
Creates a builder forAppliedNameForms.ImmutableConstitution.AppliedNameForms.builder() .absolute(String) // optionalabsolute.absoluteRaw(String) // optionalabsoluteRaw.forms(org.immutables.value.processor.meta.Constitution.NameForms) // requiredforms.applied(String) // requiredapplied.build();- Returns:
- A new AppliedNameForms builder
-