Package io.dialob.client.spi.store
Class ImmutableEntityState
- java.lang.Object
-
- io.dialob.client.spi.store.ImmutableEntityState
-
- All Implemented Interfaces:
DialobStoreConfig.EntityState
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableEntityState extends Object implements DialobStoreConfig.EntityState
Immutable implementation ofDialobStoreConfig.EntityState.Use the builder to create immutable instances:
ImmutableEntityState.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableEntityState.BuilderBuilds instances of typeImmutableEntityState.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableEntityState.Builderbuilder()Creates a builder forImmutableEntityState.static ImmutableEntityStatecopyOf(DialobStoreConfig.EntityState instance)Creates an immutable copy of aDialobStoreConfig.EntityStatevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableEntityStatethat have equal attribute values.DialobStore.StoreEntitygetEntity()io.resys.thena.docdb.api.actions.ObjectsActions.ObjectsResult<io.resys.thena.docdb.api.actions.ObjectsActions.BlobObject>getSrc()inthashCode()Computes a hash code from attributes:src,entity.StringtoString()Prints the immutable valueEntityStatewith attribute values.ImmutableEntityStatewithEntity(DialobStore.StoreEntity value)Copy the current immutable object by setting a value for theentityattribute.ImmutableEntityStatewithSrc(io.resys.thena.docdb.api.actions.ObjectsActions.ObjectsResult<io.resys.thena.docdb.api.actions.ObjectsActions.BlobObject> value)Copy the current immutable object by setting a value for thesrcattribute.
-
-
-
Method Detail
-
getSrc
public io.resys.thena.docdb.api.actions.ObjectsActions.ObjectsResult<io.resys.thena.docdb.api.actions.ObjectsActions.BlobObject> getSrc()
- Specified by:
getSrcin interfaceDialobStoreConfig.EntityState- Returns:
- The value of the
srcattribute
-
getEntity
public DialobStore.StoreEntity getEntity()
- Specified by:
getEntityin interfaceDialobStoreConfig.EntityState- Returns:
- The value of the
entityattribute
-
withSrc
public final ImmutableEntityState withSrc(io.resys.thena.docdb.api.actions.ObjectsActions.ObjectsResult<io.resys.thena.docdb.api.actions.ObjectsActions.BlobObject> value)
Copy the current immutable object by setting a value for thesrcattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for src- Returns:
- A modified copy of the
thisobject
-
withEntity
public final ImmutableEntityState withEntity(DialobStore.StoreEntity value)
Copy the current immutable object by setting a value for theentityattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for entity- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableEntityStatethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:src,entity.
-
toString
public String toString()
Prints the immutable valueEntityStatewith attribute values.
-
copyOf
public static ImmutableEntityState copyOf(DialobStoreConfig.EntityState instance)
Creates an immutable copy of aDialobStoreConfig.EntityStatevalue. 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 EntityState instance
-
builder
public static ImmutableEntityState.Builder builder()
Creates a builder forImmutableEntityState.ImmutableEntityState.builder() .src(io.resys.thena.docdb.api.actions.ObjectsActions.ObjectsResult<io.resys.thena.docdb.api.actions.ObjectsActions.BlobObject>) // requiredsrc.entity(io.dialob.client.api.DialobStore.StoreEntity) // requiredentity.build();- Returns:
- A new ImmutableEntityState builder
-
-