Class ImmutableAttributeBuilderDescriptor
java.lang.Object
org.immutables.value.processor.meta.AttributeBuilderDescriptor
org.immutables.value.processor.meta.ImmutableAttributeBuilderDescriptor
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableAttributeBuilderDescriptor
extends AttributeBuilderDescriptor
Immutable implementation of
AttributeBuilderDescriptor.
Use the builder to create immutable instances:
ImmutableAttributeBuilderDescriptor.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final classBuilds instances of typeImmutableAttributeBuilderDescriptor.static interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfacestatic interfaceNested classes/interfaces inherited from class org.immutables.value.processor.meta.AttributeBuilderDescriptor
AttributeBuilderDescriptor.ValueToBuilderTarget -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateImmutableAttributeBuilderDescriptor(AttributeBuilderDescriptor.ValueToBuilderTarget valueToBuilderTarget, String valueToBuilderMethod, String buildMethod, String qualifiedValueTypeName, String qualifiedBuilderTypeName, String qualifiedBuilderConstructorMethod) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableAttributeBuilderDescriptor.copyOf(AttributeBuilderDescriptor instance) Creates an immutable copy of aAttributeBuilderDescriptorvalue.booleanThis instance is equal to all instances ofImmutableAttributeBuilderDescriptorthat have equal attribute values.private booleanequalTo(int synthetic, ImmutableAttributeBuilderDescriptor another) A method to be invoked on the builder instance which returns a new value instance.A fully qualified path and method which creates a new instance of a builder.A fully qualified type for the builder object.A fully qualified type for the value object.protected StringA method name which when invoked will return a builder with all the properties set from the value object.inthashCode()Computes a hash code from attributes:valueToBuilderTarget,valueToBuilderMethod,buildMethod,qualifiedValueTypeName,qualifiedBuilderTypeName,qualifiedBuilderConstructorMethod.toString()Prints the immutable valueAttributeBuilderDescriptorwith attribute values.withBuildMethod(String value) Copy the current immutable object by setting a value for thebuildMethodattribute.Copy the current immutable object by setting a value for thequalifiedBuilderConstructorMethodattribute.Copy the current immutable object by setting a value for thequalifiedBuilderTypeNameattribute.withQualifiedValueTypeName(String value) Copy the current immutable object by setting a value for thequalifiedValueTypeNameattribute.withValueToBuilderMethod(String value) Copy the current immutable object by setting a value for thevalueToBuilderMethodattribute.Copy the current immutable object by setting a value for thevalueToBuilderTargetattribute.Methods inherited from class org.immutables.value.processor.meta.AttributeBuilderDescriptor
getQualifiedValueToBuilderMethod, getQualifiedValueTypeNameWithUnderscores, isCopyMethodOnValueInstance
-
Field Details
-
valueToBuilderTarget
-
valueToBuilderMethod
-
buildMethod
-
qualifiedValueTypeName
-
qualifiedBuilderTypeName
-
qualifiedBuilderConstructorMethod
-
-
Constructor Details
-
ImmutableAttributeBuilderDescriptor
-
-
Method Details
-
getValueToBuilderTarget
- Specified by:
getValueToBuilderTargetin classAttributeBuilderDescriptor- Returns:
- The value of the
valueToBuilderTargetattribute
-
getValueToBuilderMethod
A method name which when invoked will return a builder with all the properties set from the value object. This method will be invoked based ongetValueToBuilderTarget()- Specified by:
getValueToBuilderMethodin classAttributeBuilderDescriptor- Returns:
- method to create a value instance. No () included.
-
getBuildMethod
A method to be invoked on the builder instance which returns a new value instance.- Specified by:
getBuildMethodin classAttributeBuilderDescriptor- Returns:
- a method which constructs a new value instance.
-
getQualifiedValueTypeName
A fully qualified type for the value object.- Specified by:
getQualifiedValueTypeNamein classAttributeBuilderDescriptor- Returns:
- fully qualified name of the value type.
-
getQualifiedBuilderTypeName
A fully qualified type for the builder object.- Specified by:
getQualifiedBuilderTypeNamein classAttributeBuilderDescriptor- Returns:
- fully qualified name of the builder type.
-
getQualifiedBuilderConstructorMethod
A fully qualified path and method which creates a new instance of a builder. If the builder is constructed from a no-arg constructor, thenewkeyword should be prepended with a space.- Specified by:
getQualifiedBuilderConstructorMethodin classAttributeBuilderDescriptor- Returns:
- static path which invoked will create a new empty builder. No () included.
-
withValueToBuilderTarget
public final ImmutableAttributeBuilderDescriptor withValueToBuilderTarget(AttributeBuilderDescriptor.ValueToBuilderTarget value) Copy the current immutable object by setting a value for thevalueToBuilderTargetattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for valueToBuilderTarget- Returns:
- A modified copy of the
thisobject
-
withValueToBuilderMethod
Copy the current immutable object by setting a value for thevalueToBuilderMethodattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for valueToBuilderMethod- Returns:
- A modified copy of the
thisobject
-
withBuildMethod
Copy the current immutable object by setting a value for thebuildMethodattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for buildMethod- Returns:
- A modified copy of the
thisobject
-
withQualifiedValueTypeName
Copy the current immutable object by setting a value for thequalifiedValueTypeNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for qualifiedValueTypeName- Returns:
- A modified copy of the
thisobject
-
withQualifiedBuilderTypeName
Copy the current immutable object by setting a value for thequalifiedBuilderTypeNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for qualifiedBuilderTypeName- Returns:
- A modified copy of the
thisobject
-
withQualifiedBuilderConstructorMethod
public final ImmutableAttributeBuilderDescriptor withQualifiedBuilderConstructorMethod(String value) Copy the current immutable object by setting a value for thequalifiedBuilderConstructorMethodattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for qualifiedBuilderConstructorMethod- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableAttributeBuilderDescriptorthat have equal attribute values. -
equalTo
-
hashCode
public int hashCode()Computes a hash code from attributes:valueToBuilderTarget,valueToBuilderMethod,buildMethod,qualifiedValueTypeName,qualifiedBuilderTypeName,qualifiedBuilderConstructorMethod. -
toString
Prints the immutable valueAttributeBuilderDescriptorwith attribute values. -
copyOf
Creates an immutable copy of aAttributeBuilderDescriptorvalue. 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 AttributeBuilderDescriptor instance
-
builder
Creates a builder forImmutableAttributeBuilderDescriptor.ImmutableAttributeBuilderDescriptor.builder() .valueToBuilderTarget(org.immutables.value.processor.meta.AttributeBuilderDescriptor.ValueToBuilderTarget) // requiredvalueToBuilderTarget.valueToBuilderMethod(String) // requiredvalueToBuilderMethod.buildMethod(String) // requiredbuildMethod.qualifiedValueTypeName(String) // requiredqualifiedValueTypeName.qualifiedBuilderTypeName(String) // requiredqualifiedBuilderTypeName.qualifiedBuilderConstructorMethod(String) // requiredqualifiedBuilderConstructorMethod.build();- Returns:
- A new ImmutableAttributeBuilderDescriptor builder
-