Package io.dialob.client.api
Class ImmutableFormCommands
- java.lang.Object
-
- io.dialob.client.api.ImmutableFormCommands
-
- All Implemented Interfaces:
DialobComposer.FormCommands
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableFormCommands extends Object implements DialobComposer.FormCommands
Immutable implementation ofDialobComposer.FormCommands.Use the builder to create immutable instances:
ImmutableFormCommands.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableFormCommands.BuilderBuilds instances of typeImmutableFormCommands.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableFormCommands.Builderbuilder()Creates a builder forImmutableFormCommands.static ImmutableFormCommandscopyOf(DialobComposer.FormCommands instance)Creates an immutable copy of aDialobComposer.FormCommandsvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableFormCommandsthat have equal attribute values.io.dialob.api.form.FormgetForm()com.google.common.collect.ImmutableList<DialobComposer.FormCommand>getValues()inthashCode()Computes a hash code from attributes:form,values.StringtoString()Prints the immutable valueFormCommandswith attribute values.ImmutableFormCommandswithForm(io.dialob.api.form.Form value)Copy the current immutable object by setting a value for theformattribute.ImmutableFormCommandswithValues(DialobComposer.FormCommand... elements)Copy the current immutable object with elements that replace the content ofvalues.ImmutableFormCommandswithValues(Iterable<? extends DialobComposer.FormCommand> elements)Copy the current immutable object with elements that replace the content ofvalues.
-
-
-
Method Detail
-
getForm
public io.dialob.api.form.Form getForm()
- Specified by:
getFormin interfaceDialobComposer.FormCommands- Returns:
- The value of the
formattribute
-
getValues
public com.google.common.collect.ImmutableList<DialobComposer.FormCommand> getValues()
- Specified by:
getValuesin interfaceDialobComposer.FormCommands- Returns:
- The value of the
valuesattribute
-
withForm
public final ImmutableFormCommands withForm(io.dialob.api.form.Form value)
Copy the current immutable object by setting a value for theformattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for form- Returns:
- A modified copy of the
thisobject
-
withValues
public final ImmutableFormCommands withValues(DialobComposer.FormCommand... elements)
Copy the current immutable object with elements that replace the content ofvalues.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withValues
public final ImmutableFormCommands withValues(Iterable<? extends DialobComposer.FormCommand> elements)
Copy the current immutable object with elements that replace the content ofvalues. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of values elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableFormCommandsthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:form,values.
-
toString
public String toString()
Prints the immutable valueFormCommandswith attribute values.
-
copyOf
public static ImmutableFormCommands copyOf(DialobComposer.FormCommands instance)
Creates an immutable copy of aDialobComposer.FormCommandsvalue. 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 FormCommands instance
-
builder
public static ImmutableFormCommands.Builder builder()
Creates a builder forImmutableFormCommands.ImmutableFormCommands.builder() .form(io.dialob.api.form.Form) // requiredform.addValues|addAllValues(io.dialob.client.api.DialobComposer.FormCommand) //valueselements .build();- Returns:
- A new ImmutableFormCommands builder
-
-