Package io.dialob.client.api
Class ImmutableUpdate
- java.lang.Object
-
- io.dialob.client.api.ImmutableUpdate
-
- All Implemented Interfaces:
DialobComposer.Update,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableUpdate extends Object implements DialobComposer.Update
Immutable implementation ofDialobComposer.Update.Use the builder to create immutable instances:
ImmutableUpdate.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableUpdate.BuilderBuilds instances of typeImmutableUpdate.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableUpdate.Builderbuilder()Creates a builder forImmutableUpdate.static ImmutableUpdatecopyOf(DialobComposer.Update instance)Creates an immutable copy of aDialobComposer.Updatevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableUpdatethat have equal attribute values.io.dialob.api.form.FormEntitygetFormEntity()StringgetId()StringgetRev()inthashCode()Computes a hash code from attributes:id,rev,formEntity.StringtoString()Prints the immutable valueUpdatewith attribute values.ImmutableUpdatewithFormEntity(io.dialob.api.form.FormEntity value)Copy the current immutable object by setting a value for theformEntityattribute.ImmutableUpdatewithId(String value)Copy the current immutable object by setting a value for theidattribute.ImmutableUpdatewithRev(String value)Copy the current immutable object by setting a value for therevattribute.
-
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceDialobComposer.Update- Returns:
- The value of the
idattribute
-
getRev
public String getRev()
- Specified by:
getRevin interfaceDialobComposer.Update- Returns:
- The value of the
revattribute
-
getFormEntity
public io.dialob.api.form.FormEntity getFormEntity()
- Specified by:
getFormEntityin interfaceDialobComposer.Update- Returns:
- The value of the
formEntityattribute
-
withId
public final ImmutableUpdate 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
-
withRev
public final ImmutableUpdate withRev(String value)
Copy the current immutable object by setting a value for therevattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for rev- Returns:
- A modified copy of the
thisobject
-
withFormEntity
public final ImmutableUpdate withFormEntity(io.dialob.api.form.FormEntity value)
Copy the current immutable object by setting a value for theformEntityattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for formEntity- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableUpdatethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,rev,formEntity.
-
toString
public String toString()
Prints the immutable valueUpdatewith attribute values.
-
copyOf
public static ImmutableUpdate copyOf(DialobComposer.Update instance)
Creates an immutable copy of aDialobComposer.Updatevalue. 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 Update instance
-
builder
public static ImmutableUpdate.Builder builder()
Creates a builder forImmutableUpdate.ImmutableUpdate.builder() .id(String) // requiredid.rev(String) // requiredrev.formEntity(io.dialob.api.form.FormEntity) // requiredformEntity.build();- Returns:
- A new ImmutableUpdate builder
-
-