Package io.dialob.client.api
Class ImmutableRevisionWrapper
- java.lang.Object
-
- io.dialob.client.api.ImmutableRevisionWrapper
-
- All Implemented Interfaces:
DialobClient.ProgramEnvirValue<DialobDocument.FormRevisionDocument>,DialobClient.RevisionWrapper,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableRevisionWrapper extends Object implements DialobClient.RevisionWrapper
Immutable implementation ofDialobClient.RevisionWrapper.Use the builder to create immutable instances:
ImmutableRevisionWrapper.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRevisionWrapper.BuilderBuilds instances of typeImmutableRevisionWrapper.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRevisionWrapper.Builderbuilder()Creates a builder forImmutableRevisionWrapper.static ImmutableRevisionWrappercopyOf(DialobClient.RevisionWrapper instance)Creates an immutable copy of aDialobClient.RevisionWrappervalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRevisionWrapperthat have equal attribute values.DialobDocument.FormRevisionDocumentgetDocument()DialobStore.StoreEntitygetSource()inthashCode()Computes a hash code from attributes:source,document.StringtoString()Prints the immutable valueRevisionWrapperwith attribute values.ImmutableRevisionWrapperwithDocument(DialobDocument.FormRevisionDocument value)Copy the current immutable object by setting a value for thedocumentattribute.ImmutableRevisionWrapperwithSource(DialobStore.StoreEntity value)Copy the current immutable object by setting a value for thesourceattribute.
-
-
-
Method Detail
-
getSource
public DialobStore.StoreEntity getSource()
- Specified by:
getSourcein interfaceDialobClient.ProgramEnvirValue<DialobDocument.FormRevisionDocument>- Returns:
- The value of the
sourceattribute
-
getDocument
public DialobDocument.FormRevisionDocument getDocument()
- Specified by:
getDocumentin interfaceDialobClient.ProgramEnvirValue<DialobDocument.FormRevisionDocument>- Returns:
- The value of the
documentattribute
-
withSource
public final ImmutableRevisionWrapper withSource(DialobStore.StoreEntity value)
Copy the current immutable object by setting a value for thesourceattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for source- Returns:
- A modified copy of the
thisobject
-
withDocument
public final ImmutableRevisionWrapper withDocument(DialobDocument.FormRevisionDocument value)
Copy the current immutable object by setting a value for thedocumentattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for document- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableRevisionWrapperthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:source,document.
-
toString
public String toString()
Prints the immutable valueRevisionWrapperwith attribute values.
-
copyOf
public static ImmutableRevisionWrapper copyOf(DialobClient.RevisionWrapper instance)
Creates an immutable copy of aDialobClient.RevisionWrappervalue. 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 RevisionWrapper instance
-
builder
public static ImmutableRevisionWrapper.Builder builder()
Creates a builder forImmutableRevisionWrapper.ImmutableRevisionWrapper.builder() .source(io.dialob.client.api.DialobStore.StoreEntity) // requiredsource.document(io.dialob.client.api.DialobDocument.FormRevisionDocument) // requireddocument.build();- Returns:
- A new ImmutableRevisionWrapper builder
-
-