Class ImmutableTrees.TypeIdentifier
java.lang.Object
org.immutables.generator.processor.Trees.TypeIdentifier
org.immutables.generator.processor.ImmutableTrees.TypeIdentifier
- Enclosing class:
ImmutableTrees
Immutable implementation of
Trees.TypeIdentifier.
Use the static factory method to create immutable instances:
ImmutableTrees.TypeIdentifier.of().
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTypeIdentifier(String value) privateTypeIdentifier(ImmutableTrees.TypeIdentifier original, String value) -
Method Summary
Modifier and TypeMethodDescriptioncopyOf(Trees.TypeIdentifier instance) Creates an immutable copy of aTrees.TypeIdentifiervalue.booleanThis instance is equal to all instances ofTypeIdentifierthat have equal attribute values.private booleanequalTo(int synthetic, ImmutableTrees.TypeIdentifier another) inthashCode()Computes a hash code from attributes:value.Construct a new immutableTypeIdentifierinstance.value()Copy the current immutable object by setting a value for thevalueattribute.Methods inherited from class org.immutables.generator.processor.Trees.TypeIdentifier
toString
-
Field Details
-
value
-
-
Constructor Details
-
TypeIdentifier
-
TypeIdentifier
-
-
Method Details
-
value
- Specified by:
valuein classTrees.TypeIdentifier- Returns:
- The value of the
valueattribute
-
withValue
Copy the current immutable object by setting a value for thevalueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofTypeIdentifierthat have equal attribute values. -
equalTo
-
hashCode
public int hashCode()Computes a hash code from attributes:value. -
of
Construct a new immutableTypeIdentifierinstance.- Parameters:
value- The value for thevalueattribute- Returns:
- An immutable TypeIdentifier instance
-
copyOf
Creates an immutable copy of aTrees.TypeIdentifiervalue. 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 TypeIdentifier instance
-