Package io.dialob.client.spi.store
Class ImmutableDialobStoreConfig
- java.lang.Object
-
- io.dialob.client.spi.store.ImmutableDialobStoreConfig
-
- All Implemented Interfaces:
DialobStoreConfig
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDialobStoreConfig extends Object implements DialobStoreConfig
Immutable implementation ofDialobStoreConfig.Use the builder to create immutable instances:
ImmutableDialobStoreConfig.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableDialobStoreConfig.BuilderBuilds instances of typeImmutableDialobStoreConfig.-
Nested classes/interfaces inherited from interface io.dialob.client.spi.store.DialobStoreConfig
DialobStoreConfig.AuthorProvider, DialobStoreConfig.Commands, DialobStoreConfig.Deserializer, DialobStoreConfig.EntityState, DialobStoreConfig.GidProvider, DialobStoreConfig.Serializer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableDialobStoreConfig.Builderbuilder()Creates a builder forImmutableDialobStoreConfig.static ImmutableDialobStoreConfigcopyOf(DialobStoreConfig instance)Creates an immutable copy of aDialobStoreConfigvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableDialobStoreConfigthat have equal attribute values.DialobStoreConfig.AuthorProvidergetAuthorProvider()io.resys.thena.docdb.api.DocDBgetClient()DialobStoreConfig.DeserializergetDeserializer()DialobStoreConfig.GidProvidergetGidProvider()StringgetHeadName()StringgetRepoName()DialobStoreConfig.SerializergetSerializer()inthashCode()Computes a hash code from attributes:client,repoName,headName,authorProvider,gidProvider,serializer,deserializer.StringtoString()Prints the immutable valueDialobStoreConfigwith attribute values.ImmutableDialobStoreConfigwithAuthorProvider(DialobStoreConfig.AuthorProvider value)Copy the current immutable object by setting a value for theauthorProviderattribute.ImmutableDialobStoreConfigwithClient(io.resys.thena.docdb.api.DocDB value)Copy the current immutable object by setting a value for theclientattribute.ImmutableDialobStoreConfigwithDeserializer(DialobStoreConfig.Deserializer value)Copy the current immutable object by setting a value for thedeserializerattribute.ImmutableDialobStoreConfigwithGidProvider(DialobStoreConfig.GidProvider value)Copy the current immutable object by setting a value for thegidProviderattribute.ImmutableDialobStoreConfigwithHeadName(String value)Copy the current immutable object by setting a value for theheadNameattribute.ImmutableDialobStoreConfigwithRepoName(String value)Copy the current immutable object by setting a value for therepoNameattribute.ImmutableDialobStoreConfigwithSerializer(DialobStoreConfig.Serializer value)Copy the current immutable object by setting a value for theserializerattribute.
-
-
-
Method Detail
-
getClient
public io.resys.thena.docdb.api.DocDB getClient()
- Specified by:
getClientin interfaceDialobStoreConfig- Returns:
- The value of the
clientattribute
-
getRepoName
public String getRepoName()
- Specified by:
getRepoNamein interfaceDialobStoreConfig- Returns:
- The value of the
repoNameattribute
-
getHeadName
public String getHeadName()
- Specified by:
getHeadNamein interfaceDialobStoreConfig- Returns:
- The value of the
headNameattribute
-
getAuthorProvider
public DialobStoreConfig.AuthorProvider getAuthorProvider()
- Specified by:
getAuthorProviderin interfaceDialobStoreConfig- Returns:
- The value of the
authorProviderattribute
-
getGidProvider
public DialobStoreConfig.GidProvider getGidProvider()
- Specified by:
getGidProviderin interfaceDialobStoreConfig- Returns:
- The value of the
gidProviderattribute
-
getSerializer
public DialobStoreConfig.Serializer getSerializer()
- Specified by:
getSerializerin interfaceDialobStoreConfig- Returns:
- The value of the
serializerattribute
-
getDeserializer
public DialobStoreConfig.Deserializer getDeserializer()
- Specified by:
getDeserializerin interfaceDialobStoreConfig- Returns:
- The value of the
deserializerattribute
-
withClient
public final ImmutableDialobStoreConfig withClient(io.resys.thena.docdb.api.DocDB value)
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
public final ImmutableDialobStoreConfig withRepoName(String value)
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
public final ImmutableDialobStoreConfig withHeadName(String value)
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
public final ImmutableDialobStoreConfig withAuthorProvider(DialobStoreConfig.AuthorProvider value)
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
public final ImmutableDialobStoreConfig withGidProvider(DialobStoreConfig.GidProvider value)
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
public final ImmutableDialobStoreConfig withSerializer(DialobStoreConfig.Serializer value)
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
public final ImmutableDialobStoreConfig withDeserializer(DialobStoreConfig.Deserializer value)
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
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableDialobStoreConfigthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:client,repoName,headName,authorProvider,gidProvider,serializer,deserializer.
-
toString
public String toString()
Prints the immutable valueDialobStoreConfigwith attribute values.
-
copyOf
public static ImmutableDialobStoreConfig copyOf(DialobStoreConfig instance)
Creates an immutable copy of aDialobStoreConfigvalue. 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 DialobStoreConfig instance
-
builder
public static ImmutableDialobStoreConfig.Builder builder()
Creates a builder forImmutableDialobStoreConfig.ImmutableDialobStoreConfig.builder() .client(io.resys.thena.docdb.api.DocDB) // requiredclient.repoName(String) // requiredrepoName.headName(String) // requiredheadName.authorProvider(io.dialob.client.spi.store.DialobStoreConfig.AuthorProvider) // requiredauthorProvider.gidProvider(io.dialob.client.spi.store.DialobStoreConfig.GidProvider) // requiredgidProvider.serializer(io.dialob.client.spi.store.DialobStoreConfig.Serializer) // requiredserializer.deserializer(io.dialob.client.spi.store.DialobStoreConfig.Deserializer) // requireddeserializer.build();- Returns:
- A new ImmutableDialobStoreConfig builder
-
-