Package io.resys.hdes.client.spi.store
Class ImmutableThenaConfig
java.lang.Object
io.resys.hdes.client.spi.store.ImmutableThenaConfig
- All Implemented Interfaces:
ThenaConfig
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableThenaConfig
extends Object
implements ThenaConfig
Immutable implementation of
ThenaConfig.
Use the builder to create immutable instances:
ImmutableThenaConfig.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableThenaConfig.Nested classes/interfaces inherited from interface io.resys.hdes.client.spi.store.ThenaConfig
ThenaConfig.AuthorProvider, ThenaConfig.Commands, ThenaConfig.Deserializer, ThenaConfig.EntityState, ThenaConfig.GidProvider, ThenaConfig.Serializer -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableThenaConfig.Builderbuilder()Creates a builder forImmutableThenaConfig.static ImmutableThenaConfigcopyOf(ThenaConfig instance) Creates an immutable copy of aThenaConfigvalue.booleanThis instance is equal to all instances ofImmutableThenaConfigthat have equal attribute values.inthashCode()Computes a hash code from attributes:client,repoName,headName,authorProvider,gidProvider,serializer,deserializer.toString()Prints the immutable valueThenaConfigwith attribute values.final ImmutableThenaConfigCopy the current immutable object by setting a value for theauthorProviderattribute.final ImmutableThenaConfigwithClient(ThenaClient value) Copy the current immutable object by setting a value for theclientattribute.final ImmutableThenaConfigCopy the current immutable object by setting a value for thedeserializerattribute.final ImmutableThenaConfigCopy the current immutable object by setting a value for thegidProviderattribute.final ImmutableThenaConfigwithHeadName(String value) Copy the current immutable object by setting a value for theheadNameattribute.final ImmutableThenaConfigwithRepoName(String value) Copy the current immutable object by setting a value for therepoNameattribute.final ImmutableThenaConfigCopy the current immutable object by setting a value for theserializerattribute.
-
Method Details
-
getClient
- Specified by:
getClientin interfaceThenaConfig- Returns:
- The value of the
clientattribute
-
getRepoName
- Specified by:
getRepoNamein interfaceThenaConfig- Returns:
- The value of the
repoNameattribute
-
getHeadName
- Specified by:
getHeadNamein interfaceThenaConfig- Returns:
- The value of the
headNameattribute
-
getAuthorProvider
- Specified by:
getAuthorProviderin interfaceThenaConfig- Returns:
- The value of the
authorProviderattribute
-
getGidProvider
- Specified by:
getGidProviderin interfaceThenaConfig- Returns:
- The value of the
gidProviderattribute
-
getSerializer
- Specified by:
getSerializerin interfaceThenaConfig- Returns:
- The value of the
serializerattribute
-
getDeserializer
- Specified by:
getDeserializerin interfaceThenaConfig- Returns:
- The value of the
deserializerattribute
-
withClient
Copy the current immutable object by setting a value for theclientattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for client- Returns:
- A modified copy of the
thisobject
-
withRepoName
Copy the current immutable object by setting a value for therepoNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for repoName- Returns:
- A modified copy of the
thisobject
-
withHeadName
Copy the current immutable object by setting a value for theheadNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for headName- Returns:
- A modified copy of the
thisobject
-
withAuthorProvider
Copy the current immutable object by setting a value for theauthorProviderattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for authorProvider- Returns:
- A modified copy of the
thisobject
-
withGidProvider
Copy the current immutable object by setting a value for thegidProviderattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for gidProvider- Returns:
- A modified copy of the
thisobject
-
withSerializer
Copy the current immutable object by setting a value for theserializerattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for serializer- Returns:
- A modified copy of the
thisobject
-
withDeserializer
Copy the current immutable object by setting a value for thedeserializerattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for deserializer- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableThenaConfigthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:client,repoName,headName,authorProvider,gidProvider,serializer,deserializer. -
toString
Prints the immutable valueThenaConfigwith attribute values. -
copyOf
Creates an immutable copy of aThenaConfigvalue. 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 ThenaConfig instance
-
builder
Creates a builder forImmutableThenaConfig.ImmutableThenaConfig.builder() .client(io.resys.thena.api.ThenaClient) // requiredclient.repoName(String) // requiredrepoName.headName(String) // requiredheadName.authorProvider(io.resys.hdes.client.spi.store.ThenaConfig.AuthorProvider) // requiredauthorProvider.gidProvider(io.resys.hdes.client.spi.store.ThenaConfig.GidProvider) // requiredgidProvider.serializer(io.resys.hdes.client.spi.store.ThenaConfig.Serializer) // requiredserializer.deserializer(io.resys.hdes.client.spi.store.ThenaConfig.Deserializer) // requireddeserializer.build();- Returns:
- A new ImmutableThenaConfig builder
-