Package io.dialob.api.form
Class ModifiableFormValueSetEntry
java.lang.Object
io.dialob.api.form.ModifiableFormValueSetEntry
- All Implemented Interfaces:
FormValueSetEntry,Serializable
@ParametersAreNonnullByDefault
@Generated({"Modifiables.generator","FormValueSetEntry"})
@NotThreadSafe
public final class ModifiableFormValueSetEntry
extends Object
implements FormValueSetEntry
A modifiable implementation of the
FormValueSetEntry type.
Use the create() static factory methods to create new instances.
Use the toImmutable() method to convert to canonical immutable instances.
ModifiableFormValueSetEntry is not thread-safe
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionclear()Clears the object by setting all attributes to their initial values.static ModifiableFormValueSetEntrycreate()Construct a modifiable instance ofFormValueSetEntry.booleanThis instance is equal to all instances ofModifiableFormValueSetEntrythat have equal attribute values.from(FormValueSetEntry instance) Fill this modifiable instance with attribute values from the providedFormValueSetEntryinstance.from(ModifiableFormValueSetEntry instance) Fill this modifiable instance with attribute values from the providedFormValueSetEntryinstance.final StringgetId()getLabel()final StringgetWhen()inthashCode()Computes a hash code from attributes:id,label,when,additionalProperties.final booleanidIsSet()Returnstrueif the required attributeidis set.final booleanReturnstrueif all required attributes are set, indicating that the object is initialized.putAdditionalProperties(String key, Object value) Put one entry to theadditionalPropertiesmap.putAllAdditionalProperties(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries to theadditionalPropertiesmap.putAllLabel(Map<String, ? extends String> entries) Put all mappings from the specified map as entries to thelabelmap.Put one entry to thelabelmap.setAdditionalProperties(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for theadditionalPropertiesmap.Assigns a value to theidattribute.Sets or replaces all mappings from the specified map as entries for thelabelmap.Assigns a value to thewhenattribute.Converts toImmutableFormValueSetEntry.toString()Generates a string representation of thisFormValueSetEntry.unsetId()Reset an attribute to its initial value.
-
Method Details
-
create
Construct a modifiable instance ofFormValueSetEntry.- Returns:
- A new modifiable instance
-
getId
- Specified by:
getIdin interfaceFormValueSetEntry- Returns:
- value of
idattribute
-
getLabel
- Specified by:
getLabelin interfaceFormValueSetEntry- Returns:
- value of
labelattribute
-
getWhen
- Specified by:
getWhenin interfaceFormValueSetEntry- Returns:
- value of
whenattribute, may benull
-
getAdditionalProperties
- Specified by:
getAdditionalPropertiesin interfaceFormValueSetEntry- Returns:
- value of
additionalPropertiesattribute
-
clear
Clears the object by setting all attributes to their initial values.- Returns:
thisfor use in a chained invocation
-
from
Fill this modifiable instance with attribute values from the providedFormValueSetEntryinstance. Regular attribute values will be overridden, i.e. replaced with ones of an instance. Any of the instance's absent optional values will not be copied (will not override current values). Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisfor use in a chained invocation
-
from
Fill this modifiable instance with attribute values from the providedFormValueSetEntryinstance. Regular attribute values will be overridden, i.e. replaced with ones of an instance. Any of the instance's absent optional values will not be copied (will not override current values). Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisfor use in a chained invocation
-
setId
Assigns a value to theidattribute.- Parameters:
id- The value for id- Returns:
thisfor use in a chained invocation
-
putLabel
Put one entry to thelabelmap.- Parameters:
key- The key in label mapvalue- The associated value in the label map- Returns:
thisfor use in a chained invocation
-
setLabel
Sets or replaces all mappings from the specified map as entries for thelabelmap. Nulls are not permitted as keys or values.- Parameters:
entries- The entries that will be added to the label map- Returns:
thisfor use in a chained invocation
-
putAllLabel
Put all mappings from the specified map as entries to thelabelmap. Nulls are not permitted as keys or values.- Parameters:
entries- to be added to label map- Returns:
thisfor use in a chained invocation
-
setWhen
Assigns a value to thewhenattribute.- Parameters:
when- The value for when, can benull- Returns:
thisfor use in a chained invocation
-
putAdditionalProperties
Put one entry to theadditionalPropertiesmap.- Parameters:
key- The key in additionalProperties mapvalue- The associated value in the additionalProperties map- Returns:
thisfor use in a chained invocation
-
setAdditionalProperties
Sets or replaces all mappings from the specified map as entries for theadditionalPropertiesmap. Nulls are not permitted as keys or values.- Parameters:
entries- The entries that will be added to the additionalProperties map- Returns:
thisfor use in a chained invocation
-
putAllAdditionalProperties
Put all mappings from the specified map as entries to theadditionalPropertiesmap. Nulls are not permitted as keys or values.- Parameters:
entries- to be added to additionalProperties map- Returns:
thisfor use in a chained invocation
-
idIsSet
public final boolean idIsSet()Returnstrueif the required attributeidis set.- Returns:
trueif set
-
unsetId
Reset an attribute to its initial value.- Returns:
thisfor use in a chained invocation
-
isInitialized
public final boolean isInitialized()Returnstrueif all required attributes are set, indicating that the object is initialized.- Returns:
trueif set
-
toImmutable
Converts toImmutableFormValueSetEntry.- Returns:
- An immutable instance of FormValueSetEntry
-
equals
This instance is equal to all instances ofModifiableFormValueSetEntrythat have equal attribute values. An uninitialized instance is equal only to itself. -
hashCode
public int hashCode()Computes a hash code from attributes:id,label,when,additionalProperties. -
toString
Generates a string representation of thisFormValueSetEntry. If uninitialized, some attribute values may appear as question marks.
-