Package io.dialob.client.api
Class ImmutableComposerDocumentState
- java.lang.Object
-
- io.dialob.client.api.ImmutableComposerDocumentState
-
- All Implemented Interfaces:
DialobComposer.ComposerDocumentState,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableComposerDocumentState extends Object implements DialobComposer.ComposerDocumentState
Immutable implementation ofDialobComposer.ComposerDocumentState.Use the builder to create immutable instances:
ImmutableComposerDocumentState.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableComposerDocumentState.BuilderBuilds instances of typeImmutableComposerDocumentState.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableComposerDocumentState.Builderbuilder()Creates a builder forImmutableComposerDocumentState.static ImmutableComposerDocumentStatecopyOf(DialobComposer.ComposerDocumentState instance)Creates an immutable copy of aDialobComposer.ComposerDocumentStatevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableComposerDocumentStatethat have equal attribute values.DialobDocument.FormDocumentgetForm()DialobDocument.FormRevisionDocumentgetRevision()inthashCode()Computes a hash code from attributes:form,revision.StringtoString()Prints the immutable valueComposerDocumentStatewith attribute values.ImmutableComposerDocumentStatewithForm(DialobDocument.FormDocument value)Copy the current immutable object by setting a value for theformattribute.ImmutableComposerDocumentStatewithRevision(DialobDocument.FormRevisionDocument value)Copy the current immutable object by setting a value for therevisionattribute.
-
-
-
Method Detail
-
getForm
public DialobDocument.FormDocument getForm()
- Specified by:
getFormin interfaceDialobComposer.ComposerDocumentState- Returns:
- The value of the
formattribute
-
getRevision
public DialobDocument.FormRevisionDocument getRevision()
- Specified by:
getRevisionin interfaceDialobComposer.ComposerDocumentState- Returns:
- The value of the
revisionattribute
-
withForm
public final ImmutableComposerDocumentState withForm(DialobDocument.FormDocument 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
-
withRevision
public final ImmutableComposerDocumentState withRevision(DialobDocument.FormRevisionDocument value)
Copy the current immutable object by setting a value for therevisionattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for revision- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableComposerDocumentStatethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:form,revision.
-
toString
public String toString()
Prints the immutable valueComposerDocumentStatewith attribute values.
-
copyOf
public static ImmutableComposerDocumentState copyOf(DialobComposer.ComposerDocumentState instance)
Creates an immutable copy of aDialobComposer.ComposerDocumentStatevalue. 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 ComposerDocumentState instance
-
builder
public static ImmutableComposerDocumentState.Builder builder()
Creates a builder forImmutableComposerDocumentState.ImmutableComposerDocumentState.builder() .form(io.dialob.client.api.DialobDocument.FormDocument) // requiredform.revision(io.dialob.client.api.DialobDocument.FormRevisionDocument) // requiredrevision.build();- Returns:
- A new ImmutableComposerDocumentState builder
-
-