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 ofFormTag.Use the builder to create immutable instances:
ImmutableFormTag.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableFormTag.BuilderBuilds instances of typeImmutableFormTag.-
Nested classes/interfaces inherited from interface io.dialob.api.form.FormTag
FormTag.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableFormTag.Builderbuilder()Creates a builder forImmutableFormTag.static ImmutableFormTagcopyOf(FormTag instance)Creates an immutable copy of aFormTagvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableFormTagthat have equal attribute values.DategetCreated()StringgetDescription()StringgetFormId()StringgetFormName()StringgetName()StringgetRefName()FormTag.TypegetType()inthashCode()Computes a hash code from attributes:formName,name,refName,created,formId,description,type.StringtoString()Prints the immutable valueFormTagwith attribute values.ImmutableFormTagwithCreated(Date value)Copy the current immutable object by setting a value for thecreatedattribute.ImmutableFormTagwithDescription(String value)Copy the current immutable object by setting a value for thedescriptionattribute.ImmutableFormTagwithFormId(String value)Copy the current immutable object by setting a value for theformIdattribute.ImmutableFormTagwithFormName(String value)Copy the current immutable object by setting a value for theformNameattribute.ImmutableFormTagwithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableFormTagwithRefName(String value)Copy the current immutable object by setting a value for therefNameattribute.ImmutableFormTagwithType(FormTag.Type value)Copy the current immutable object by setting a value for thetypeattribute.
-
-
-
Method Detail
-
getFormName
public String getFormName()
- Specified by:
getFormNamein interfaceFormTag- Returns:
- The value of the
formNameattribute
-
getName
public String getName()
-
getRefName
public String getRefName()
- Specified by:
getRefNamein interfaceFormTag- Returns:
- The value of the
refNameattribute
-
getCreated
public Date getCreated()
- Specified by:
getCreatedin interfaceFormTag- Returns:
- The value of the
createdattribute
-
getFormId
public String getFormId()
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceFormTag- Returns:
- The value of the
descriptionattribute
-
getType
public FormTag.Type getType()
-
withFormName
public final ImmutableFormTag withFormName(String value)
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
public final ImmutableFormTag withName(String value)
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
public final ImmutableFormTag withRefName(String value)
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
public final ImmutableFormTag withCreated(Date value)
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
public final ImmutableFormTag withFormId(String value)
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
public final ImmutableFormTag withDescription(String value)
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
public final ImmutableFormTag withType(FormTag.Type value)
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
public boolean equals(@Nullable Object another)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
public String toString()
Prints the immutable valueFormTagwith attribute values.
-
copyOf
public static ImmutableFormTag copyOf(FormTag instance)
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
public static ImmutableFormTag.Builder 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
-
-