Package io.dialob.client.api
Class ImmutableReleaseWrapper
- java.lang.Object
-
- io.dialob.client.api.ImmutableReleaseWrapper
-
- All Implemented Interfaces:
DialobClient.ProgramEnvirValue<DialobDocument.FormReleaseDocument>,DialobClient.ReleaseWrapper,Serializable
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableReleaseWrapper extends Object implements DialobClient.ReleaseWrapper
Immutable implementation ofDialobClient.ReleaseWrapper.Use the builder to create immutable instances:
ImmutableReleaseWrapper.builder().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableReleaseWrapper.BuilderBuilds instances of typeImmutableReleaseWrapper.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableReleaseWrapper.Builderbuilder()Creates a builder forImmutableReleaseWrapper.static ImmutableReleaseWrappercopyOf(DialobClient.ReleaseWrapper instance)Creates an immutable copy of aDialobClient.ReleaseWrappervalue.booleanequals(Object another)This instance is equal to all instances ofImmutableReleaseWrapperthat have equal attribute values.DialobDocument.FormReleaseDocumentgetDocument()DialobStore.StoreEntitygetSource()inthashCode()Computes a hash code from attributes:source,document.StringtoString()Prints the immutable valueReleaseWrapperwith attribute values.ImmutableReleaseWrapperwithDocument(DialobDocument.FormReleaseDocument value)Copy the current immutable object by setting a value for thedocumentattribute.ImmutableReleaseWrapperwithSource(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.FormReleaseDocument>- Returns:
- The value of the
sourceattribute
-
getDocument
public DialobDocument.FormReleaseDocument getDocument()
- Specified by:
getDocumentin interfaceDialobClient.ProgramEnvirValue<DialobDocument.FormReleaseDocument>- Returns:
- The value of the
documentattribute
-
withSource
public final ImmutableReleaseWrapper 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 ImmutableReleaseWrapper withDocument(DialobDocument.FormReleaseDocument 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 ofImmutableReleaseWrapperthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:source,document.
-
toString
public String toString()
Prints the immutable valueReleaseWrapperwith attribute values.
-
copyOf
public static ImmutableReleaseWrapper copyOf(DialobClient.ReleaseWrapper instance)
Creates an immutable copy of aDialobClient.ReleaseWrappervalue. 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 ReleaseWrapper instance
-
builder
public static ImmutableReleaseWrapper.Builder builder()
Creates a builder forImmutableReleaseWrapper.ImmutableReleaseWrapper.builder() .source(io.dialob.client.api.DialobStore.StoreEntity) // requiredsource.document(io.dialob.client.api.DialobDocument.FormReleaseDocument) // requireddocument.build();- Returns:
- A new ImmutableReleaseWrapper builder
-
-