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 ofFormValueSetEntry.Use the builder to create immutable instances:
ImmutableFormValueSetEntry.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableFormValueSetEntry.BuilderBuilds instances of typeImmutableFormValueSetEntry.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableFormValueSetEntry.Builderbuilder()Creates a builder forImmutableFormValueSetEntry.static ImmutableFormValueSetEntrycopyOf(FormValueSetEntry instance)Creates an immutable copy of aFormValueSetEntryvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableFormValueSetEntrythat have equal attribute values.Map<String,Object>getAdditionalProperties()StringgetId()Map<String,String>getLabel()StringgetWhen()inthashCode()Computes a hash code from attributes:id,label,when,additionalProperties.StringtoString()Prints the immutable valueFormValueSetEntrywith attribute values.ImmutableFormValueSetEntrywithAdditionalProperties(Map<String,? extends Object> entries)Copy the current immutable object by replacing theadditionalPropertiesmap with the specified map.ImmutableFormValueSetEntrywithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableFormValueSetEntrywithLabel(Map<String,? extends String> entries)Copy the current immutable object by replacing thelabelmap with the specified map.ImmutableFormValueSetEntrywithWhen(String value)Copy the current immutable object by setting a value for thewhenattribute.
-
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceFormValueSetEntry- Returns:
- The value of the
idattribute
-
getLabel
public Map<String,String> getLabel()
- Specified by:
getLabelin interfaceFormValueSetEntry- Returns:
- The value of the
labelattribute
-
getWhen
public String getWhen()
- Specified by:
getWhenin interfaceFormValueSetEntry- Returns:
- The value of the
whenattribute
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
- Specified by:
getAdditionalPropertiesin interfaceFormValueSetEntry- Returns:
- The value of the
additionalPropertiesattribute
-
withId
public final ImmutableFormValueSetEntry withId(String value)
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
public final ImmutableFormValueSetEntry withLabel(Map<String,? extends String> entries)
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
public final ImmutableFormValueSetEntry withWhen(String value)
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
public boolean equals(@Nullable Object another)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
public String toString()
Prints the immutable valueFormValueSetEntrywith attribute values.
-
copyOf
public static ImmutableFormValueSetEntry copyOf(FormValueSetEntry instance)
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
public static ImmutableFormValueSetEntry.Builder 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
-
-