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 implementation of
Constitution.NameForms.
Use the builder to create immutable instances:
ImmutableConstitution.NameForms.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeNameForms.private final class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabsolute()builder()Creates a builder forNameForms.copyOf(Constitution.NameForms instance) Creates an immutable copy of aConstitution.NameFormsvalue.booleanThis instance is equal to all instances ofNameFormsthat have equal attribute values.private booleanequalTo(int synthetic, ImmutableConstitution.NameForms another) inthashCode()Computes a hash code from attributes:simple,relativeRaw,packageOf,visibility,absolute,absoluteRaw,genericArgs,relativeAlreadyQualified.booleansimple()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.withGenericArgs(String value) Copy the current immutable object by setting a value for thegenericArgsattribute.withPackageOf(String value) Copy the current immutable object by setting a value for thepackageOfattribute.withRelativeAlreadyQualified(boolean value) Copy the current immutable object by setting a value for therelativeAlreadyQualifiedattribute.withRelativeRaw(String value) Copy the current immutable object by setting a value for therelativeRawattribute.withSimple(String value) Copy the current immutable object by setting a value for thesimpleattribute.withVisibility(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, toStringMethods inherited from class org.immutables.value.processor.meta.Constitution.AbstractNameForms
access, qualifyWithPackage, relative
-
Field Details
-
simple
-
relativeRaw
-
packageOf
-
visibility
-
absolute
-
absoluteRaw
-
genericArgs
-
relativeAlreadyQualified
private final boolean relativeAlreadyQualified -
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
-
NameForms
-
NameForms
-
-
Method Details
-
simple
- Specified by:
simplein classConstitution.AbstractNameForms- Returns:
- The value of the
simpleattribute
-
relativeRaw
- Specified by:
relativeRawin classConstitution.AbstractNameForms- Returns:
- The value of the
relativeRawattribute
-
packageOf
- Specified by:
packageOfin classConstitution.AbstractNameForms- Returns:
- The value of the
packageOfattribute
-
visibility
- Specified by:
visibilityin classConstitution.AbstractNameForms- Returns:
- The value of the
visibilityattribute
-
absolute
- Overrides:
absolutein classConstitution.AbstractNameForms- Returns:
- The value of the
absoluteattribute
-
absoluteRaw
- Overrides:
absoluteRawin classConstitution.AbstractNameForms- Returns:
- The value of the
absoluteRawattribute
-
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
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
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
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
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
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
-
withGenericArgs
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
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
This instance is equal to all instances ofNameFormsthat have equal attribute values. -
equalTo
-
hashCode
public int hashCode()Computes a hash code from attributes:simple,relativeRaw,packageOf,visibility,absolute,absoluteRaw,genericArgs,relativeAlreadyQualified. -
copyOf
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
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
-