Package io.dialob.api.form
Class ModifiableFormValueSet
java.lang.Object
io.dialob.api.form.ModifiableFormValueSet
- All Implemented Interfaces:
FormValueSet,Serializable
@ParametersAreNonnullByDefault
@Generated({"Modifiables.generator","FormValueSet"})
@NotThreadSafe
public final class ModifiableFormValueSet
extends Object
implements FormValueSet
A modifiable implementation of the
FormValueSet type.
Use the create() static factory methods to create new instances.
Use the toImmutable() method to convert to canonical immutable instances.
ModifiableFormValueSet is not thread-safe
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaddAllEntries(Iterable<? extends FormValueSetEntry> elements) Adds elements toentrieslist.addEntries(FormValueSetEntry element) Adds one element toentrieslist.final ModifiableFormValueSetaddEntries(FormValueSetEntry... elements) Adds elements toentrieslist.clear()Clears the object by setting all attributes to their initial values.static ModifiableFormValueSetcreate()Construct a modifiable instance ofFormValueSet.booleanThis instance is equal to all instances ofModifiableFormValueSetthat have equal attribute values.from(FormValueSet instance) Fill this modifiable instance with attribute values from the providedFormValueSetinstance.from(ModifiableFormValueSet instance) Fill this modifiable instance with attribute values from the providedFormValueSetinstance.final List<FormValueSetEntry>final StringgetId()inthashCode()Computes a hash code from attributes:id,entries,additionalProperties.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.setAdditionalProperties(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for theadditionalPropertiesmap.setEntries(Iterable<? extends FormValueSetEntry> elements) Sets or replaces all elements forentrieslist.Assigns a value to theidattribute.final ImmutableFormValueSetConverts toImmutableFormValueSet.toString()Generates a string representation of thisFormValueSet.
-
Method Details
-
create
Construct a modifiable instance ofFormValueSet.- Returns:
- A new modifiable instance
-
getId
- Specified by:
getIdin interfaceFormValueSet- Returns:
- value of
idattribute, may benull
-
getEntries
- Specified by:
getEntriesin interfaceFormValueSet- Returns:
- modifiable list
entries
-
getAdditionalProperties
- Specified by:
getAdditionalPropertiesin interfaceFormValueSet- 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 providedFormValueSetinstance. 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 providedFormValueSetinstance. 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, can benull- Returns:
thisfor use in a chained invocation
-
addEntries
Adds one element toentrieslist.- Parameters:
element- The entries element- Returns:
thisfor use in a chained invocation
-
addEntries
Adds elements toentrieslist.- Parameters:
elements- An array of entries elements- Returns:
thisfor use in a chained invocation
-
setEntries
Sets or replaces all elements forentrieslist.- Parameters:
elements- An iterable of entries elements- Returns:
thisfor use in a chained invocation
-
addAllEntries
Adds elements toentrieslist.- Parameters:
elements- An iterable of entries elements- 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
-
isInitialized
public final boolean isInitialized()Returnstrueif all required attributes are set, indicating that the object is initialized.- Returns:
trueif set
-
toImmutable
Converts toImmutableFormValueSet.- Returns:
- An immutable instance of FormValueSet
-
equals
This instance is equal to all instances ofModifiableFormValueSetthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,entries,additionalProperties. -
toString
Generates a string representation of thisFormValueSet. If uninitialized, some attribute values may appear as question marks.
-