Class ImmutableClientWrapper
- java.lang.Object
-
- io.resys.thena.docdb.spi.pgsql.support.ImmutableClientWrapper
-
- All Implemented Interfaces:
ClientWrapper
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableClientWrapper extends Object implements ClientWrapper
Immutable implementation ofClientWrapper.Use the builder to create immutable instances:
ImmutableClientWrapper.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableClientWrapper.BuilderBuilds instances of typeImmutableClientWrapper.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableClientWrapper.Builderbuilder()Creates a builder forImmutableClientWrapper.static ImmutableClientWrappercopyOf(ClientWrapper instance)Creates an immutable copy of aClientWrappervalue.booleanequals(Object another)This instance is equal to all instances ofImmutableClientWrapperthat have equal attribute values.io.vertx.mutiny.pgclient.PgPoolgetClient()ClientCollectionsgetNames()RepogetRepo()inthashCode()Computes a hash code from attributes:repo,client,names.StringtoString()Prints the immutable valueClientWrapperwith attribute values.ImmutableClientWrapperwithClient(io.vertx.mutiny.pgclient.PgPool value)Copy the current immutable object by setting a value for theclientattribute.ImmutableClientWrapperwithNames(ClientCollections value)Copy the current immutable object by setting a value for thenamesattribute.ImmutableClientWrapperwithRepo(Repo value)Copy the current immutable object by setting a value for therepoattribute.
-
-
-
Method Detail
-
getRepo
public Repo getRepo()
- Specified by:
getRepoin interfaceClientWrapper- Returns:
- The value of the
repoattribute
-
getClient
public io.vertx.mutiny.pgclient.PgPool getClient()
- Specified by:
getClientin interfaceClientWrapper- Returns:
- The value of the
clientattribute
-
getNames
public ClientCollections getNames()
- Specified by:
getNamesin interfaceClientWrapper- Returns:
- The value of the
namesattribute
-
withRepo
public final ImmutableClientWrapper withRepo(Repo value)
Copy the current immutable object by setting a value for therepoattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for repo- Returns:
- A modified copy of the
thisobject
-
withClient
public final ImmutableClientWrapper withClient(io.vertx.mutiny.pgclient.PgPool 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
-
withNames
public final ImmutableClientWrapper withNames(ClientCollections value)
Copy the current immutable object by setting a value for thenamesattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for names- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableClientWrapperthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:repo,client,names.
-
toString
public String toString()
Prints the immutable valueClientWrapperwith attribute values.
-
copyOf
public static ImmutableClientWrapper copyOf(ClientWrapper instance)
Creates an immutable copy of aClientWrappervalue. 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 ClientWrapper instance
-
builder
public static ImmutableClientWrapper.Builder builder()
Creates a builder forImmutableClientWrapper.ImmutableClientWrapper.builder() .repo(io.resys.thena.docdb.api.models.Repo) // requiredrepo.client(io.vertx.mutiny.pgclient.PgPool) // requiredclient.names(io.resys.thena.docdb.spi.ClientCollections) // requirednames.build();- Returns:
- A new ImmutableClientWrapper builder
-
-