Class ImmutableThirdPartyAttributeBuilderStrategy
java.lang.Object
org.immutables.value.processor.meta.AttributeBuilderReflection.ThirdPartyAttributeBuilderStrategy
org.immutables.value.processor.meta.ImmutableThirdPartyAttributeBuilderStrategy
- All Implemented Interfaces:
AttributeBuilderReflection.Strategy
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
final class ImmutableThirdPartyAttributeBuilderStrategy
extends AttributeBuilderReflection.ThirdPartyAttributeBuilderStrategy
Immutable implementation of
AttributeBuilderReflection.ThirdPartyAttributeBuilderStrategy.
Use the static factory method to create immutable instances:
ImmutableThirdPartyAttributeBuilderStrategy.of().
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AttributeBuilderDescriptorprivate final TypeElementprivate final AttributeBuilderThirdPartyModel -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateImmutableThirdPartyAttributeBuilderStrategy(AttributeBuilderThirdPartyModel builderModel, TypeElement attributeValueType) -
Method Summary
Modifier and TypeMethodDescriptionprotected TypeElementGuaranteed not null if isAttributeBuilder is true.protected AttributeBuilderThirdPartyModelGuaranteed not null if isAttributeBuilder is true.Creates an immutable copy of aAttributeBuilderReflection.ThirdPartyAttributeBuilderStrategyvalue.booleanThis instance is equal to all instances ofImmutableThirdPartyAttributeBuilderStrategythat have equal attribute values.private booleanequalTo(int synthetic, ImmutableThirdPartyAttributeBuilderStrategy another) inthashCode()Computes a hash code from attributes:builderModel,attributeValueType,attributeBuilderDescriptor.of(AttributeBuilderThirdPartyModel builderModel, TypeElement attributeValueType) Construct a new immutableThirdPartyAttributeBuilderStrategyinstance.toString()Prints the immutable valueThirdPartyAttributeBuilderStrategywith attribute values.Copy the current immutable object by setting a value for theattributeValueTypeattribute.Copy the current immutable object by setting a value for thebuilderModelattribute.Methods inherited from class org.immutables.value.processor.meta.AttributeBuilderReflection.ThirdPartyAttributeBuilderStrategy
isAttributeBuilder, isPossibleCopyMethod, of
-
Field Details
-
builderModel
-
attributeValueType
-
attributeBuilderDescriptor
-
-
Constructor Details
-
ImmutableThirdPartyAttributeBuilderStrategy
private ImmutableThirdPartyAttributeBuilderStrategy(@Nullable AttributeBuilderThirdPartyModel builderModel, @Nullable TypeElement attributeValueType)
-
-
Method Details
-
builderModel
Description copied from class:AttributeBuilderReflection.ThirdPartyAttributeBuilderStrategyGuaranteed not null if isAttributeBuilder is true.- Specified by:
builderModelin classAttributeBuilderReflection.ThirdPartyAttributeBuilderStrategy- Returns:
- The value of the
builderModelattribute
-
attributeValueType
Description copied from class:AttributeBuilderReflection.ThirdPartyAttributeBuilderStrategyGuaranteed not null if isAttributeBuilder is true.- Specified by:
attributeValueTypein classAttributeBuilderReflection.ThirdPartyAttributeBuilderStrategy- Returns:
- The value of the
attributeValueTypeattribute
-
getAttributeBuilderDescriptor
- Specified by:
getAttributeBuilderDescriptorin interfaceAttributeBuilderReflection.Strategy- Overrides:
getAttributeBuilderDescriptorin classAttributeBuilderReflection.ThirdPartyAttributeBuilderStrategy- Returns:
- The computed-at-construction value of the
attributeBuilderDescriptorattribute
-
withBuilderModel
public final ImmutableThirdPartyAttributeBuilderStrategy withBuilderModel(@Nullable AttributeBuilderThirdPartyModel value) Copy the current immutable object by setting a value for thebuilderModelattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for builderModel (can benull)- Returns:
- A modified copy of the
thisobject
-
withAttributeValueType
public final ImmutableThirdPartyAttributeBuilderStrategy withAttributeValueType(@Nullable TypeElement value) Copy the current immutable object by setting a value for theattributeValueTypeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for attributeValueType (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableThirdPartyAttributeBuilderStrategythat have equal attribute values. -
equalTo
-
hashCode
public int hashCode()Computes a hash code from attributes:builderModel,attributeValueType,attributeBuilderDescriptor. -
toString
Prints the immutable valueThirdPartyAttributeBuilderStrategywith attribute values. -
of
public static ImmutableThirdPartyAttributeBuilderStrategy of(@Nullable AttributeBuilderThirdPartyModel builderModel, @Nullable TypeElement attributeValueType) Construct a new immutableThirdPartyAttributeBuilderStrategyinstance.- Parameters:
builderModel- The value for thebuilderModelattributeattributeValueType- The value for theattributeValueTypeattribute- Returns:
- An immutable ThirdPartyAttributeBuilderStrategy instance
-
copyOf
public static ImmutableThirdPartyAttributeBuilderStrategy copyOf(AttributeBuilderReflection.ThirdPartyAttributeBuilderStrategy instance) Creates an immutable copy of aAttributeBuilderReflection.ThirdPartyAttributeBuilderStrategyvalue. 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 ThirdPartyAttributeBuilderStrategy instance
-