Package io.dialob.api.form
Class ImmutableFormTag
java.lang.Object
io.dialob.api.form.ImmutableFormTag
- All Implemented Interfaces:
FormEntity,FormTag,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableFormTag
extends Object
implements FormTag
Immutable implementation of
FormTag.
Use the builder to create immutable instances:
ImmutableFormTag.builder().
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.dialob.api.form.FormTag
FormTag.Type -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableFormTag.Builderbuilder()Creates a builder forImmutableFormTag.static ImmutableFormTagCreates an immutable copy of aFormTagvalue.booleanThis instance is equal to all instances ofImmutableFormTagthat have equal attribute values.getName()getType()inthashCode()Computes a hash code from attributes:formName,name,refName,created,formId,description,type.toString()Prints the immutable valueFormTagwith attribute values.final ImmutableFormTagwithCreated(Date value) Copy the current immutable object by setting a value for thecreatedattribute.final ImmutableFormTagwithDescription(String value) Copy the current immutable object by setting a value for thedescriptionattribute.final ImmutableFormTagwithFormId(String value) Copy the current immutable object by setting a value for theformIdattribute.final ImmutableFormTagwithFormName(String value) Copy the current immutable object by setting a value for theformNameattribute.final ImmutableFormTagCopy the current immutable object by setting a value for thenameattribute.final ImmutableFormTagwithRefName(String value) Copy the current immutable object by setting a value for therefNameattribute.final ImmutableFormTagwithType(FormTag.Type value) Copy the current immutable object by setting a value for thetypeattribute.
-
Method Details
-
getFormName
- Specified by:
getFormNamein interfaceFormTag- Returns:
- The value of the
formNameattribute
-
getName
-
getRefName
- Specified by:
getRefNamein interfaceFormTag- Returns:
- The value of the
refNameattribute
-
getCreated
- Specified by:
getCreatedin interfaceFormTag- Returns:
- The value of the
createdattribute
-
getFormId
-
getDescription
- Specified by:
getDescriptionin interfaceFormTag- Returns:
- The value of the
descriptionattribute
-
getType
-
withFormName
Copy the current immutable object by setting a value for theformNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for formName (can benull)- Returns:
- A modified copy of the
thisobject
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name (can benull)- Returns:
- A modified copy of the
thisobject
-
withRefName
Copy the current immutable object by setting a value for therefNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for refName (can benull)- Returns:
- A modified copy of the
thisobject
-
withCreated
Copy the current immutable object by setting a value for thecreatedattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for created (can benull)- Returns:
- A modified copy of the
thisobject
-
withFormId
Copy the current immutable object by setting a value for theformIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for formId (can benull)- Returns:
- A modified copy of the
thisobject
-
withDescription
Copy the current immutable object by setting a value for thedescriptionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for description (can benull)- Returns:
- A modified copy of the
thisobject
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableFormTagthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:formName,name,refName,created,formId,description,type. -
toString
Prints the immutable valueFormTagwith attribute values. -
copyOf
Creates an immutable copy of aFormTagvalue. 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 FormTag instance
-
builder
Creates a builder forImmutableFormTag.ImmutableFormTag.builder() .formName(String | null) // nullableformName.name(String | null) // nullablename.refName(String | null) // nullablerefName.created(Date | null) // nullablecreated.formId(String | null) // nullableformId.description(String | null) // nullabledescription.type(io.dialob.api.form.FormTag.Type) // optionaltype.build();- Returns:
- A new ImmutableFormTag builder
-