Package io.dialob.api.form
Class ImmutableFormValueSetEntry
java.lang.Object
io.dialob.api.form.ImmutableFormValueSetEntry
- All Implemented Interfaces:
FormValueSetEntry,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableFormValueSetEntry
extends Object
implements FormValueSetEntry
Immutable implementation of
FormValueSetEntry.
Use the builder to create immutable instances:
ImmutableFormValueSetEntry.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableFormValueSetEntry. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableFormValueSetEntry.static ImmutableFormValueSetEntrycopyOf(FormValueSetEntry instance) Creates an immutable copy of aFormValueSetEntryvalue.booleanThis instance is equal to all instances ofImmutableFormValueSetEntrythat have equal attribute values.getId()getLabel()getWhen()inthashCode()Computes a hash code from attributes:id,label,when,additionalProperties.toString()Prints the immutable valueFormValueSetEntrywith attribute values.withAdditionalProperties(Map<String, ? extends Object> entries) Copy the current immutable object by replacing theadditionalPropertiesmap with the specified map.Copy the current immutable object by setting a value for theidattribute.Copy the current immutable object by replacing thelabelmap with the specified map.Copy the current immutable object by setting a value for thewhenattribute.
-
Method Details
-
getId
- Specified by:
getIdin interfaceFormValueSetEntry- Returns:
- The value of the
idattribute
-
getLabel
- Specified by:
getLabelin interfaceFormValueSetEntry- Returns:
- The value of the
labelattribute
-
getWhen
- Specified by:
getWhenin interfaceFormValueSetEntry- Returns:
- The value of the
whenattribute
-
getAdditionalProperties
- Specified by:
getAdditionalPropertiesin interfaceFormValueSetEntry- Returns:
- The value of the
additionalPropertiesattribute
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
withLabel
Copy the current immutable object by replacing thelabelmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the label map- Returns:
- A modified copy of
thisobject
-
withWhen
Copy the current immutable object by setting a value for thewhenattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for when (can benull)- Returns:
- A modified copy of the
thisobject
-
withAdditionalProperties
public final ImmutableFormValueSetEntry withAdditionalProperties(Map<String, ? extends Object> entries) Copy the current immutable object by replacing theadditionalPropertiesmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the additionalProperties map- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableFormValueSetEntrythat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,label,when,additionalProperties. -
toString
Prints the immutable valueFormValueSetEntrywith attribute values. -
copyOf
Creates an immutable copy of aFormValueSetEntryvalue. 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 FormValueSetEntry instance
-
builder
Creates a builder forImmutableFormValueSetEntry.ImmutableFormValueSetEntry.builder() .id(String) // requiredid.putLabel|putAllLabel(String => String) //labelmappings .when(String | null) // nullablewhen.putAdditionalProperties|putAllAdditionalProperties(String => Object) //additionalPropertiesmappings .build();- Returns:
- A new ImmutableFormValueSetEntry builder
-