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 AttributeBuilderDescriptorImmutable implementation ofAttributeBuilderDescriptor.Use the builder to create immutable instances:
ImmutableAttributeBuilderDescriptor.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classImmutableAttributeBuilderDescriptor.BuilderBuilds instances of typeImmutableAttributeBuilderDescriptor.static interfaceImmutableAttributeBuilderDescriptor.BuildFinalstatic interfaceImmutableAttributeBuilderDescriptor.BuildMethodBuildStagestatic interfaceImmutableAttributeBuilderDescriptor.QualifiedBuilderConstructorMethodBuildStagestatic interfaceImmutableAttributeBuilderDescriptor.QualifiedBuilderTypeNameBuildStagestatic interfaceImmutableAttributeBuilderDescriptor.QualifiedValueTypeNameBuildStagestatic interfaceImmutableAttributeBuilderDescriptor.ValueToBuilderMethodBuildStagestatic interfaceImmutableAttributeBuilderDescriptor.ValueToBuilderTargetBuildStage-
Nested classes/interfaces inherited from class org.immutables.value.processor.meta.AttributeBuilderDescriptor
AttributeBuilderDescriptor.ValueToBuilderTarget
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringbuildMethodprivate java.lang.StringqualifiedBuilderConstructorMethodprivate java.lang.StringqualifiedBuilderTypeNameprivate java.lang.StringqualifiedValueTypeNameprivate java.lang.StringvalueToBuilderMethodprivate AttributeBuilderDescriptor.ValueToBuilderTargetvalueToBuilderTarget
-
Constructor Summary
Constructors Modifier Constructor Description privateImmutableAttributeBuilderDescriptor(AttributeBuilderDescriptor.ValueToBuilderTarget valueToBuilderTarget, java.lang.String valueToBuilderMethod, java.lang.String buildMethod, java.lang.String qualifiedValueTypeName, java.lang.String qualifiedBuilderTypeName, java.lang.String qualifiedBuilderConstructorMethod)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableAttributeBuilderDescriptor.ValueToBuilderTargetBuildStagebuilder()Creates a builder forImmutableAttributeBuilderDescriptor.static ImmutableAttributeBuilderDescriptorcopyOf(AttributeBuilderDescriptor instance)Creates an immutable copy of aAttributeBuilderDescriptorvalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofImmutableAttributeBuilderDescriptorthat have equal attribute values.private booleanequalTo(int synthetic, ImmutableAttributeBuilderDescriptor another)java.lang.StringgetBuildMethod()A method to be invoked on the builder instance which returns a new value instance.java.lang.StringgetQualifiedBuilderConstructorMethod()A fully qualified path and method which creates a new instance of a builder.java.lang.StringgetQualifiedBuilderTypeName()A fully qualified type for the builder object.java.lang.StringgetQualifiedValueTypeName()A fully qualified type for the value object.protected java.lang.StringgetValueToBuilderMethod()A method name which when invoked will return a builder with all the properties set from the value object.AttributeBuilderDescriptor.ValueToBuilderTargetgetValueToBuilderTarget()inthashCode()Computes a hash code from attributes:valueToBuilderTarget,valueToBuilderMethod,buildMethod,qualifiedValueTypeName,qualifiedBuilderTypeName,qualifiedBuilderConstructorMethod.java.lang.StringtoString()Prints the immutable valueAttributeBuilderDescriptorwith attribute values.ImmutableAttributeBuilderDescriptorwithBuildMethod(java.lang.String value)Copy the current immutable object by setting a value for thebuildMethodattribute.ImmutableAttributeBuilderDescriptorwithQualifiedBuilderConstructorMethod(java.lang.String value)Copy the current immutable object by setting a value for thequalifiedBuilderConstructorMethodattribute.ImmutableAttributeBuilderDescriptorwithQualifiedBuilderTypeName(java.lang.String value)Copy the current immutable object by setting a value for thequalifiedBuilderTypeNameattribute.ImmutableAttributeBuilderDescriptorwithQualifiedValueTypeName(java.lang.String value)Copy the current immutable object by setting a value for thequalifiedValueTypeNameattribute.ImmutableAttributeBuilderDescriptorwithValueToBuilderMethod(java.lang.String value)Copy the current immutable object by setting a value for thevalueToBuilderMethodattribute.ImmutableAttributeBuilderDescriptorwithValueToBuilderTarget(AttributeBuilderDescriptor.ValueToBuilderTarget value)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 Detail
-
valueToBuilderTarget
private final AttributeBuilderDescriptor.ValueToBuilderTarget valueToBuilderTarget
-
valueToBuilderMethod
private final java.lang.String valueToBuilderMethod
-
buildMethod
private final java.lang.String buildMethod
-
qualifiedValueTypeName
private final java.lang.String qualifiedValueTypeName
-
qualifiedBuilderTypeName
private final java.lang.String qualifiedBuilderTypeName
-
qualifiedBuilderConstructorMethod
private final java.lang.String qualifiedBuilderConstructorMethod
-
-
Constructor Detail
-
ImmutableAttributeBuilderDescriptor
private ImmutableAttributeBuilderDescriptor(AttributeBuilderDescriptor.ValueToBuilderTarget valueToBuilderTarget, java.lang.String valueToBuilderMethod, java.lang.String buildMethod, java.lang.String qualifiedValueTypeName, java.lang.String qualifiedBuilderTypeName, java.lang.String qualifiedBuilderConstructorMethod)
-
-
Method Detail
-
getValueToBuilderTarget
public AttributeBuilderDescriptor.ValueToBuilderTarget getValueToBuilderTarget()
- Specified by:
getValueToBuilderTargetin classAttributeBuilderDescriptor- Returns:
- The value of the
valueToBuilderTargetattribute
-
getValueToBuilderMethod
protected java.lang.String 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
public java.lang.String 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
public java.lang.String getQualifiedValueTypeName()
A fully qualified type for the value object.- Specified by:
getQualifiedValueTypeNamein classAttributeBuilderDescriptor- Returns:
- fully qualified name of the value type.
-
getQualifiedBuilderTypeName
public java.lang.String getQualifiedBuilderTypeName()
A fully qualified type for the builder object.- Specified by:
getQualifiedBuilderTypeNamein classAttributeBuilderDescriptor- Returns:
- fully qualified name of the builder type.
-
getQualifiedBuilderConstructorMethod
public java.lang.String 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
public final ImmutableAttributeBuilderDescriptor withValueToBuilderMethod(java.lang.String value)
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
public final ImmutableAttributeBuilderDescriptor withBuildMethod(java.lang.String value)
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
public final ImmutableAttributeBuilderDescriptor withQualifiedValueTypeName(java.lang.String value)
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
public final ImmutableAttributeBuilderDescriptor withQualifiedBuilderTypeName(java.lang.String value)
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(java.lang.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
public boolean equals(@Nullable java.lang.Object another)This instance is equal to all instances ofImmutableAttributeBuilderDescriptorthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
equalTo
private boolean equalTo(int synthetic, ImmutableAttributeBuilderDescriptor another)
-
hashCode
public int hashCode()
Computes a hash code from attributes:valueToBuilderTarget,valueToBuilderMethod,buildMethod,qualifiedValueTypeName,qualifiedBuilderTypeName,qualifiedBuilderConstructorMethod.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueAttributeBuilderDescriptorwith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
copyOf
public static ImmutableAttributeBuilderDescriptor copyOf(AttributeBuilderDescriptor instance)
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
public static ImmutableAttributeBuilderDescriptor.ValueToBuilderTargetBuildStage 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
-
-