Package io.dialob.api.form
Class ImmutableFormValueSet
java.lang.Object
io.dialob.api.form.ImmutableFormValueSet
- All Implemented Interfaces:
FormValueSet,Serializable
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableFormValueSet
extends Object
implements FormValueSet
Immutable implementation of
FormValueSet.
Use the builder to create immutable instances:
ImmutableFormValueSet.builder().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableFormValueSet. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableFormValueSet.static ImmutableFormValueSetcopyOf(FormValueSet instance) Creates an immutable copy of aFormValueSetvalue.booleanThis instance is equal to all instances ofImmutableFormValueSetthat have equal attribute values.getId()inthashCode()Computes a hash code from attributes:id,entries,additionalProperties.toString()Prints the immutable valueFormValueSetwith attribute values.final ImmutableFormValueSetwithAdditionalProperties(Map<String, ? extends Object> entries) Copy the current immutable object by replacing theadditionalPropertiesmap with the specified map.final ImmutableFormValueSetwithEntries(FormValueSetEntry... elements) Copy the current immutable object with elements that replace the content ofentries.final ImmutableFormValueSetwithEntries(Iterable<? extends FormValueSetEntry> elements) Copy the current immutable object with elements that replace the content ofentries.final ImmutableFormValueSetCopy the current immutable object by setting a value for theidattribute.
-
Method Details
-
getId
- Specified by:
getIdin interfaceFormValueSet- Returns:
- The value of the
idattribute
-
getEntries
- Specified by:
getEntriesin interfaceFormValueSet- Returns:
- The value of the
entriesattribute
-
getAdditionalProperties
- Specified by:
getAdditionalPropertiesin interfaceFormValueSet- 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 (can benull)- Returns:
- A modified copy of the
thisobject
-
withEntries
Copy the current immutable object with elements that replace the content ofentries.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withEntries
Copy the current immutable object with elements that replace the content ofentries. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of entries elements to set- Returns:
- A modified copy of
thisobject
-
withAdditionalProperties
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 ofImmutableFormValueSetthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,entries,additionalProperties. -
toString
Prints the immutable valueFormValueSetwith attribute values. -
copyOf
Creates an immutable copy of aFormValueSetvalue. 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 FormValueSet instance
-
builder
Creates a builder forImmutableFormValueSet.ImmutableFormValueSet.builder() .id(String | null) // nullableid.addEntries|addAllEntries(io.dialob.api.form.FormValueSetEntry) //entrieselements .putAdditionalProperties|putAllAdditionalProperties(String => Object) //additionalPropertiesmappings .build();- Returns:
- A new ImmutableFormValueSet builder
-