Package io.dialob.client.api
Class ImmutableStoreDump
- java.lang.Object
-
- io.dialob.client.api.ImmutableStoreDump
-
- All Implemented Interfaces:
DialobComposer.StoreDump,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableStoreDump extends Object implements DialobComposer.StoreDump
Immutable implementation ofDialobComposer.StoreDump.Use the builder to create immutable instances:
ImmutableStoreDump.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableStoreDump.BuilderBuilds instances of typeImmutableStoreDump.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableStoreDump.Builderbuilder()Creates a builder forImmutableStoreDump.static ImmutableStoreDumpcopyOf(DialobComposer.StoreDump instance)Creates an immutable copy of aDialobComposer.StoreDumpvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableStoreDumpthat have equal attribute values.StringgetId()com.google.common.collect.ImmutableList<io.dialob.api.form.FormEntity>getValue()inthashCode()Computes a hash code from attributes:id,value.StringtoString()Prints the immutable valueStoreDumpwith attribute values.ImmutableStoreDumpwithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableStoreDumpwithValue(io.dialob.api.form.FormEntity... elements)Copy the current immutable object with elements that replace the content ofvalue.ImmutableStoreDumpwithValue(Iterable<? extends io.dialob.api.form.FormEntity> elements)Copy the current immutable object with elements that replace the content ofvalue.
-
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceDialobComposer.StoreDump- Returns:
- The value of the
idattribute
-
getValue
public com.google.common.collect.ImmutableList<io.dialob.api.form.FormEntity> getValue()
- Specified by:
getValuein interfaceDialobComposer.StoreDump- Returns:
- The value of the
valueattribute
-
withId
public final ImmutableStoreDump 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
-
withValue
public final ImmutableStoreDump withValue(io.dialob.api.form.FormEntity... elements)
Copy the current immutable object with elements that replace the content ofvalue.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withValue
public final ImmutableStoreDump withValue(Iterable<? extends io.dialob.api.form.FormEntity> elements)
Copy the current immutable object with elements that replace the content ofvalue. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of value elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableStoreDumpthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,value.
-
toString
public String toString()
Prints the immutable valueStoreDumpwith attribute values.
-
copyOf
public static ImmutableStoreDump copyOf(DialobComposer.StoreDump instance)
Creates an immutable copy of aDialobComposer.StoreDumpvalue. 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 StoreDump instance
-
builder
public static ImmutableStoreDump.Builder builder()
Creates a builder forImmutableStoreDump.ImmutableStoreDump.builder() .id(String) // requiredid.addValue|addAllValue(io.dialob.api.form.FormEntity) //valueelements .build();- Returns:
- A new ImmutableStoreDump builder
-
-