Package io.resys.hdes.client.spi.store
Class ImmutableEntityState
java.lang.Object
io.resys.hdes.client.spi.store.ImmutableEntityState
- All Implemented Interfaces:
ThenaConfig.EntityState
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableEntityState
extends Object
implements ThenaConfig.EntityState
Immutable implementation of
ThenaConfig.EntityState.
Use the builder to create immutable instances:
ImmutableEntityState.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableEntityState. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableEntityState.Builderbuilder()Creates a builder forImmutableEntityState.static ImmutableEntityStatecopyOf(ThenaConfig.EntityState instance) Creates an immutable copy of aThenaConfig.EntityStatevalue.booleanThis instance is equal to all instances ofImmutableEntityStatethat have equal attribute values.getSrc()inthashCode()Computes a hash code from attributes:src,entity.toString()Prints the immutable valueEntityStatewith attribute values.final ImmutableEntityStatewithEntity(HdesStore.StoreEntity value) Copy the current immutable object by setting a value for theentityattribute.final ImmutableEntityStateCopy the current immutable object by setting a value for thesrcattribute.
-
Method Details
-
getSrc
- Specified by:
getSrcin interfaceThenaConfig.EntityState- Returns:
- The value of the
srcattribute
-
getEntity
- Specified by:
getEntityin interfaceThenaConfig.EntityState- Returns:
- The value of the
entityattribute
-
withSrc
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
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
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
Prints the immutable valueEntityStatewith attribute values. -
copyOf
Creates an immutable copy of aThenaConfig.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
Creates a builder forImmutableEntityState.ImmutableEntityState.builder() .src(io.resys.thena.api.envelope.QueryEnvelope<io.resys.thena.api.actions.GitPullActions.PullObject>) // requiredsrc.entity(io.resys.hdes.client.api.HdesStore.StoreEntity) // requiredentity.build();- Returns:
- A new ImmutableEntityState builder
-