Class ImmutableConstitution.NameForms
- java.lang.Object
-
- org.immutables.value.processor.meta.Constitution.AbstractNameForms
-
- org.immutables.value.processor.meta.Constitution.NameForms
-
- org.immutables.value.processor.meta.ImmutableConstitution.NameForms
-
- Enclosing class:
- ImmutableConstitution
@Immutable public static final class ImmutableConstitution.NameForms extends Constitution.NameForms
Immutable implementation ofConstitution.NameForms.Use the builder to create immutable instances:
ImmutableConstitution.NameForms.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableConstitution.NameForms.BuilderBuilds instances of typeNameForms.private classImmutableConstitution.NameForms.InitShim
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringabsoluteprivate java.lang.StringabsoluteRawprivate java.lang.StringgenericArgsprivate ImmutableConstitution.NameForms.InitShiminitShimprivate java.lang.StringpackageOfprivate booleanrelativeAlreadyQualifiedprivate java.lang.StringrelativeRawprivate java.lang.Stringsimpleprivate static byteSTAGE_INITIALIZEDprivate static byteSTAGE_INITIALIZINGprivate static byteSTAGE_UNINITIALIZEDprivate Visibilityvisibility
-
Constructor Summary
Constructors Modifier Constructor Description privateNameForms(java.lang.String simple, java.lang.String relativeRaw, java.lang.String packageOf, Visibility visibility, java.lang.String absolute, java.lang.String absoluteRaw, java.lang.String genericArgs, boolean relativeAlreadyQualified)privateNameForms(ImmutableConstitution.NameForms.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringabsolute()java.lang.StringabsoluteRaw()static ImmutableConstitution.NameForms.Builderbuilder()Creates a builder forNameForms.static ImmutableConstitution.NameFormscopyOf(Constitution.NameForms instance)Creates an immutable copy of aConstitution.NameFormsvalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofNameFormsthat have equal attribute values.private booleanequalTo(int synthetic, ImmutableConstitution.NameForms another)java.lang.StringgenericArgs()inthashCode()Computes a hash code from attributes:simple,relativeRaw,packageOf,visibility,absolute,absoluteRaw,genericArgs,relativeAlreadyQualified.java.lang.StringpackageOf()booleanrelativeAlreadyQualified()java.lang.StringrelativeRaw()java.lang.Stringsimple()Visibilityvisibility()ImmutableConstitution.NameFormswithAbsolute(java.lang.String value)Copy the current immutable object by setting a value for theabsoluteattribute.ImmutableConstitution.NameFormswithAbsoluteRaw(java.lang.String value)Copy the current immutable object by setting a value for theabsoluteRawattribute.ImmutableConstitution.NameFormswithGenericArgs(java.lang.String value)Copy the current immutable object by setting a value for thegenericArgsattribute.ImmutableConstitution.NameFormswithPackageOf(java.lang.String value)Copy the current immutable object by setting a value for thepackageOfattribute.ImmutableConstitution.NameFormswithRelativeAlreadyQualified(boolean value)Copy the current immutable object by setting a value for therelativeAlreadyQualifiedattribute.ImmutableConstitution.NameFormswithRelativeRaw(java.lang.String value)Copy the current immutable object by setting a value for therelativeRawattribute.ImmutableConstitution.NameFormswithSimple(java.lang.String value)Copy the current immutable object by setting a value for thesimpleattribute.ImmutableConstitution.NameFormswithVisibility(Visibility value)Copy the current immutable object by setting a value for thevisibilityattribute.-
Methods inherited from class org.immutables.value.processor.meta.Constitution.NameForms
applied, toString
-
Methods inherited from class org.immutables.value.processor.meta.Constitution.AbstractNameForms
access, qualifyWithPackage, relative
-
-
-
-
Field Detail
-
simple
private final java.lang.String simple
-
relativeRaw
private final java.lang.String relativeRaw
-
packageOf
private final java.lang.String packageOf
-
visibility
private final Visibility visibility
-
absolute
private final java.lang.String absolute
-
absoluteRaw
private final java.lang.String absoluteRaw
-
genericArgs
private final java.lang.String genericArgs
-
relativeAlreadyQualified
private final boolean relativeAlreadyQualified
-
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.NameForms.InitShim initShim
-
-
Constructor Detail
-
NameForms
private NameForms(ImmutableConstitution.NameForms.Builder builder)
-
NameForms
private NameForms(java.lang.String simple, java.lang.String relativeRaw, java.lang.String packageOf, Visibility visibility, java.lang.String absolute, java.lang.String absoluteRaw, java.lang.String genericArgs, boolean relativeAlreadyQualified)
-
-
Method Detail
-
simple
public java.lang.String simple()
- Specified by:
simplein classConstitution.AbstractNameForms- Returns:
- The value of the
simpleattribute
-
relativeRaw
public java.lang.String relativeRaw()
- Specified by:
relativeRawin classConstitution.AbstractNameForms- Returns:
- The value of the
relativeRawattribute
-
packageOf
public java.lang.String packageOf()
- Specified by:
packageOfin classConstitution.AbstractNameForms- Returns:
- The value of the
packageOfattribute
-
visibility
public Visibility visibility()
- Specified by:
visibilityin classConstitution.AbstractNameForms- Returns:
- The value of the
visibilityattribute
-
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
-
genericArgs
public java.lang.String genericArgs()
- Overrides:
genericArgsin classConstitution.AbstractNameForms- Returns:
- The value of the
genericArgsattribute
-
relativeAlreadyQualified
public boolean relativeAlreadyQualified()
- Overrides:
relativeAlreadyQualifiedin classConstitution.AbstractNameForms- Returns:
- The value of the
relativeAlreadyQualifiedattribute
-
withSimple
public final ImmutableConstitution.NameForms withSimple(java.lang.String value)
Copy the current immutable object by setting a value for thesimpleattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for simple- Returns:
- A modified copy of the
thisobject
-
withRelativeRaw
public final ImmutableConstitution.NameForms withRelativeRaw(java.lang.String value)
Copy the current immutable object by setting a value for therelativeRawattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for relativeRaw- Returns:
- A modified copy of the
thisobject
-
withPackageOf
public final ImmutableConstitution.NameForms withPackageOf(java.lang.String value)
Copy the current immutable object by setting a value for thepackageOfattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for packageOf- Returns:
- A modified copy of the
thisobject
-
withVisibility
public final ImmutableConstitution.NameForms withVisibility(Visibility value)
Copy the current immutable object by setting a value for thevisibilityattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for visibility- Returns:
- A modified copy of the
thisobject
-
withAbsolute
public final ImmutableConstitution.NameForms 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.NameForms 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
-
withGenericArgs
public final ImmutableConstitution.NameForms withGenericArgs(java.lang.String value)
Copy the current immutable object by setting a value for thegenericArgsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for genericArgs- Returns:
- A modified copy of the
thisobject
-
withRelativeAlreadyQualified
public final ImmutableConstitution.NameForms withRelativeAlreadyQualified(boolean value)
Copy the current immutable object by setting a value for therelativeAlreadyQualifiedattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for relativeAlreadyQualified- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable java.lang.Object another)This instance is equal to all instances ofNameFormsthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
equalTo
private boolean equalTo(int synthetic, ImmutableConstitution.NameForms another)
-
hashCode
public int hashCode()
Computes a hash code from attributes:simple,relativeRaw,packageOf,visibility,absolute,absoluteRaw,genericArgs,relativeAlreadyQualified.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
copyOf
public static ImmutableConstitution.NameForms copyOf(Constitution.NameForms instance)
Creates an immutable copy of aConstitution.NameFormsvalue. 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 NameForms instance
-
builder
public static ImmutableConstitution.NameForms.Builder builder()
Creates a builder forNameForms.ImmutableConstitution.NameForms.builder() .simple(String) // requiredsimple.relativeRaw(String) // requiredrelativeRaw.packageOf(String) // requiredpackageOf.visibility(org.immutables.value.processor.meta.Visibility) // requiredvisibility.absolute(String) // optionalabsolute.absoluteRaw(String) // optionalabsoluteRaw.genericArgs(String) // optionalgenericArgs.relativeAlreadyQualified(boolean) // optionalrelativeAlreadyQualified.build();- Returns:
- A new NameForms builder
-
-