Class ImmutableTrees.ResolvedType
java.lang.Object
org.immutables.generator.processor.Trees.ResolvedType
org.immutables.generator.processor.ImmutableTrees.ResolvedType
- All Implemented Interfaces:
Trees.Synthetic,Trees.TypeReference
- Enclosing class:
ImmutableTrees
Immutable implementation of
Trees.ResolvedType.
Use the builder to create immutable instances:
ImmutableTrees.ResolvedType.builder().
Use the static factory method to create immutable instances:
ImmutableTrees.ResolvedType.of().
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateResolvedType(Object type) privateResolvedType(ImmutableTrees.ResolvedType original, Object type) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forResolvedType.static ImmutableTrees.ResolvedTypecopyOf(Trees.ResolvedType instance) Creates an immutable copy of aTrees.ResolvedTypevalue.booleanThis instance is equal to all instances ofResolvedTypethat have equal attribute values.private booleanequalTo(int synthetic, ImmutableTrees.ResolvedType another) inthashCode()Computes a hash code from attributes:type.static ImmutableTrees.ResolvedTypeConstruct a new immutableResolvedTypeinstance.type()Copy the current immutable object by setting a value for thetypeattribute.Methods inherited from class org.immutables.generator.processor.Trees.ResolvedType
toString
-
Field Details
-
type
-
-
Constructor Details
-
ResolvedType
-
ResolvedType
-
-
Method Details
-
type
- Specified by:
typein classTrees.ResolvedType- Returns:
- The value of the
typeattribute
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofResolvedTypethat have equal attribute values. -
equalTo
-
hashCode
public int hashCode()Computes a hash code from attributes:type. -
of
Construct a new immutableResolvedTypeinstance.- Parameters:
type- The value for thetypeattribute- Returns:
- An immutable ResolvedType instance
-
copyOf
Creates an immutable copy of aTrees.ResolvedTypevalue. 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 ResolvedType instance
-
builder
Creates a builder forResolvedType.ImmutableTrees.ResolvedType.builder() .type(Object) // requiredtype.build();- Returns:
- A new ResolvedType builder
-