Class ImmutableAttributeBuilderThirdPartyModel
java.lang.Object
org.immutables.value.processor.meta.AttributeBuilderThirdPartyModel
org.immutables.value.processor.meta.ImmutableAttributeBuilderThirdPartyModel
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
final class ImmutableAttributeBuilderThirdPartyModel
extends AttributeBuilderThirdPartyModel
Immutable implementation of
AttributeBuilderThirdPartyModel.
Use the builder to create immutable instances:
ImmutableAttributeBuilderThirdPartyModel.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableAttributeBuilderThirdPartyModel.Nested classes/interfaces inherited from class org.immutables.value.processor.meta.AttributeBuilderThirdPartyModel
AttributeBuilderThirdPartyModel.Creator -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ExecutableElementprivate final TypeElementprivate final ExecutableElementprivate final ExecutableElement -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateImmutableAttributeBuilderThirdPartyModel(ExecutableElement buildMethod, ExecutableElement copyMethod, ExecutableElement builderMethod, TypeElement builderType) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableAttributeBuilderThirdPartyModel.protected ExecutableElementprotected TypeElementprotected ExecutableElementprotected ExecutableElementcopyOf(AttributeBuilderThirdPartyModel instance) Creates an immutable copy of aAttributeBuilderThirdPartyModelvalue.booleanThis instance is equal to all instances ofImmutableAttributeBuilderThirdPartyModelthat have equal attribute values.private booleanequalTo(int synthetic, ImmutableAttributeBuilderThirdPartyModel another) inthashCode()Computes a hash code from attributes:buildMethod,copyMethod,builderMethod,builderType.toString()Prints the immutable valueAttributeBuilderThirdPartyModelwith attribute values.Copy the current immutable object by setting a value for thebuilderMethodattribute.withBuilderType(TypeElement value) Copy the current immutable object by setting a value for thebuilderTypeattribute.withBuildMethod(ExecutableElement value) Copy the current immutable object by setting a value for thebuildMethodattribute.withCopyMethod(ExecutableElement value) Copy the current immutable object by setting a value for thecopyMethodattribute.
-
Field Details
-
buildMethod
-
copyMethod
-
builderMethod
-
builderType
-
-
Constructor Details
-
ImmutableAttributeBuilderThirdPartyModel
private ImmutableAttributeBuilderThirdPartyModel(ExecutableElement buildMethod, ExecutableElement copyMethod, ExecutableElement builderMethod, TypeElement builderType)
-
-
Method Details
-
buildMethod
- Specified by:
buildMethodin classAttributeBuilderThirdPartyModel- Returns:
- The value of the
buildMethodattribute
-
copyMethod
- Specified by:
copyMethodin classAttributeBuilderThirdPartyModel- Returns:
- The value of the
copyMethodattribute
-
builderMethod
- Specified by:
builderMethodin classAttributeBuilderThirdPartyModel- Returns:
- The value of the
builderMethodattribute
-
builderType
- Specified by:
builderTypein classAttributeBuilderThirdPartyModel- Returns:
- The value of the
builderTypeattribute
-
withBuildMethod
Copy the current immutable object by setting a value for thebuildMethodattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for buildMethod- Returns:
- A modified copy of the
thisobject
-
withCopyMethod
Copy the current immutable object by setting a value for thecopyMethodattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for copyMethod- Returns:
- A modified copy of the
thisobject
-
withBuilderMethod
Copy the current immutable object by setting a value for thebuilderMethodattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for builderMethod- Returns:
- A modified copy of the
thisobject
-
withBuilderType
Copy the current immutable object by setting a value for thebuilderTypeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for builderType- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableAttributeBuilderThirdPartyModelthat have equal attribute values. -
equalTo
-
hashCode
public int hashCode()Computes a hash code from attributes:buildMethod,copyMethod,builderMethod,builderType. -
toString
Prints the immutable valueAttributeBuilderThirdPartyModelwith attribute values. -
copyOf
public static ImmutableAttributeBuilderThirdPartyModel copyOf(AttributeBuilderThirdPartyModel instance) Creates an immutable copy of aAttributeBuilderThirdPartyModelvalue. 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 AttributeBuilderThirdPartyModel instance
-
builder
Creates a builder forImmutableAttributeBuilderThirdPartyModel.ImmutableAttributeBuilderThirdPartyModel.builder() .buildMethod(javax.lang.model.element.ExecutableElement) // requiredbuildMethod.copyMethod(javax.lang.model.element.ExecutableElement) // requiredcopyMethod.builderMethod(javax.lang.model.element.ExecutableElement) // requiredbuilderMethod.builderType(javax.lang.model.element.TypeElement) // requiredbuilderType.build();- Returns:
- A new ImmutableAttributeBuilderThirdPartyModel builder
-