Class ImmutableFirstPartyStrategy
java.lang.Object
org.immutables.value.processor.meta.AttributeBuilderReflection.FirstPartyStrategy
org.immutables.value.processor.meta.ImmutableFirstPartyStrategy
- All Implemented Interfaces:
AttributeBuilderReflection.Strategy
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
final class ImmutableFirstPartyStrategy
extends AttributeBuilderReflection.FirstPartyStrategy
Immutable implementation of
AttributeBuilderReflection.FirstPartyStrategy.
Use the static factory method to create immutable instances:
ImmutableFirstPartyStrategy.of().
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateImmutableFirstPartyStrategy(ImmutableFirstPartyStrategy original, ValueAttribute valueAttribute) privateImmutableFirstPartyStrategy(ValueAttribute valueAttribute) -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableFirstPartyStrategyCreates an immutable copy of aAttributeBuilderReflection.FirstPartyStrategyvalue.booleanThis instance is equal to all instances ofImmutableFirstPartyStrategythat have equal attribute values.private booleanequalTo(int synthetic, ImmutableFirstPartyStrategy another) inthashCode()Computes a hash code from attributes:valueAttribute.static ImmutableFirstPartyStrategyof(ValueAttribute valueAttribute) Construct a new immutableFirstPartyStrategyinstance.toString()Prints the immutable valueFirstPartyStrategywith attribute values.(package private) ValueAttributewithValueAttribute(ValueAttribute value) Copy the current immutable object by setting a value for thevalueAttributeattribute.Methods inherited from class org.immutables.value.processor.meta.AttributeBuilderReflection.FirstPartyStrategy
attributeValueType, getAttributeBuilderDescriptor, isAttributeBuilder
-
Field Details
-
valueAttribute
-
-
Constructor Details
-
ImmutableFirstPartyStrategy
-
ImmutableFirstPartyStrategy
private ImmutableFirstPartyStrategy(ImmutableFirstPartyStrategy original, ValueAttribute valueAttribute)
-
-
Method Details
-
valueAttribute
ValueAttribute valueAttribute()- Specified by:
valueAttributein classAttributeBuilderReflection.FirstPartyStrategy- Returns:
- The value of the
valueAttributeattribute
-
withValueAttribute
Copy the current immutable object by setting a value for thevalueAttributeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for valueAttribute- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableFirstPartyStrategythat have equal attribute values. -
equalTo
-
hashCode
public int hashCode()Computes a hash code from attributes:valueAttribute. -
toString
Prints the immutable valueFirstPartyStrategywith attribute values. -
of
Construct a new immutableFirstPartyStrategyinstance.- Parameters:
valueAttribute- The value for thevalueAttributeattribute- Returns:
- An immutable FirstPartyStrategy instance
-
copyOf
public static ImmutableFirstPartyStrategy copyOf(AttributeBuilderReflection.FirstPartyStrategy instance) Creates an immutable copy of aAttributeBuilderReflection.FirstPartyStrategyvalue. 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 FirstPartyStrategy instance
-