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 ofConstitution.AppliedNameForms.Use the builder to create immutable instances:
ImmutableConstitution.AppliedNameForms.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableConstitution.AppliedNameForms.BuilderBuilds instances of typeAppliedNameForms.private classImmutableConstitution.AppliedNameForms.InitShim
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringabsoluteprivate java.lang.StringabsoluteRawprivate java.lang.Stringappliedprivate Constitution.NameFormsformsprivate ImmutableConstitution.AppliedNameForms.InitShiminitShimprivate booleanisNewprivate java.lang.Stringsimpleprivate static byteSTAGE_INITIALIZEDprivate static byteSTAGE_INITIALIZINGprivate static byteSTAGE_UNINITIALIZED
-
Constructor Summary
Constructors Modifier Constructor Description privateAppliedNameForms(java.lang.String absolute, java.lang.String absoluteRaw, Constitution.NameForms forms, java.lang.String applied)privateAppliedNameForms(ImmutableConstitution.AppliedNameForms.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringabsolute()java.lang.StringabsoluteRaw()java.lang.Stringapplied()static ImmutableConstitution.AppliedNameForms.Builderbuilder()Creates a builder forAppliedNameForms.static ImmutableConstitution.AppliedNameFormscopyOf(Constitution.AppliedNameForms instance)Creates an immutable copy of aConstitution.AppliedNameFormsvalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofAppliedNameFormsthat have equal attribute values.private booleanequalTo(int synthetic, ImmutableConstitution.AppliedNameForms another)Constitution.NameFormsforms()inthashCode()Computes a hash code from attributes:absolute,absoluteRaw,forms,applied,simple,isNew.booleanisNew()java.lang.Stringsimple()ImmutableConstitution.AppliedNameFormswithAbsolute(java.lang.String value)Copy the current immutable object by setting a value for theabsoluteattribute.ImmutableConstitution.AppliedNameFormswithAbsoluteRaw(java.lang.String value)Copy the current immutable object by setting a value for theabsoluteRawattribute.ImmutableConstitution.AppliedNameFormswithApplied(java.lang.String value)Copy the current immutable object by setting a value for theappliedattribute.ImmutableConstitution.AppliedNameFormswithForms(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, visibility
-
Methods inherited from class org.immutables.value.processor.meta.Constitution.AbstractNameForms
access, qualifyWithPackage
-
-
-
-
Field Detail
-
absolute
private final java.lang.String absolute
-
absoluteRaw
private final java.lang.String absoluteRaw
-
forms
private final Constitution.NameForms forms
-
applied
private final java.lang.String applied
-
simple
private final transient java.lang.String simple
-
isNew
private final transient boolean isNew
-
STAGE_INITIALIZING
private static final byte STAGE_INITIALIZING
- See Also:
- Constant Field Values
-
STAGE_UNINITIALIZED
private static final byte STAGE_UNINITIALIZED
- See Also:
- Constant Field Values
-
STAGE_INITIALIZED
private static final byte STAGE_INITIALIZED
- See Also:
- Constant Field Values
-
initShim
private transient volatile ImmutableConstitution.AppliedNameForms.InitShim initShim
-
-
Constructor Detail
-
AppliedNameForms
private AppliedNameForms(ImmutableConstitution.AppliedNameForms.Builder builder)
-
AppliedNameForms
private AppliedNameForms(java.lang.String absolute, java.lang.String absoluteRaw, Constitution.NameForms forms, java.lang.String applied)
-
-
Method Detail
-
absolute
public java.lang.String absolute()
- Overrides:
absolutein classConstitution.AbstractNameForms- Returns:
- The value of the
absoluteattribute
-
absoluteRaw
public java.lang.String absoluteRaw()
- Overrides:
absoluteRawin classConstitution.AbstractNameForms- Returns:
- The value of the
absoluteRawattribute
-
forms
public Constitution.NameForms forms()
- Specified by:
formsin classConstitution.AppliedNameForms- Returns:
- The value of the
formsattribute
-
applied
public java.lang.String applied()
- Specified by:
appliedin classConstitution.AppliedNameForms- Returns:
- The value of the
appliedattribute
-
simple
public java.lang.String 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
public final ImmutableConstitution.AppliedNameForms withAbsolute(java.lang.String value)
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
public final ImmutableConstitution.AppliedNameForms withAbsoluteRaw(java.lang.String value)
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
public final ImmutableConstitution.AppliedNameForms withForms(Constitution.NameForms value)
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
public final ImmutableConstitution.AppliedNameForms withApplied(java.lang.String value)
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
public boolean equals(@Nullable java.lang.Object another)This instance is equal to all instances ofAppliedNameFormsthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
equalTo
private boolean equalTo(int synthetic, ImmutableConstitution.AppliedNameForms another)
-
hashCode
public int hashCode()
Computes a hash code from attributes:absolute,absoluteRaw,forms,applied,simple,isNew.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
copyOf
public static ImmutableConstitution.AppliedNameForms copyOf(Constitution.AppliedNameForms instance)
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
public static ImmutableConstitution.AppliedNameForms.Builder 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
-
-