Package io.resys.thena.datasource
Class ImmutableSqlTuple
java.lang.Object
io.resys.thena.datasource.ImmutableSqlTuple
- All Implemented Interfaces:
ThenaSqlClient.SqlTuple
@Generated(from="ThenaSqlClient.SqlTuple",
generator="Immutables")
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableSqlTuple
extends Object
implements ThenaSqlClient.SqlTuple
Immutable implementation of
ThenaSqlClient.SqlTuple.
Use the builder to create immutable instances:
ImmutableSqlTuple.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableSqlTuple.Builderbuilder()Creates a builder forImmutableSqlTuple.static ImmutableSqlTuplecopyOf(ThenaSqlClient.SqlTuple instance) Creates an immutable copy of aThenaSqlClient.SqlTuplevalue.booleanThis instance is equal to all instances ofImmutableSqlTuplethat have equal attribute values.io.vertx.mutiny.sqlclient.TuplegetProps()getValue()inthashCode()Computes a hash code from attributes:value,props.toString()Prints the immutable valueSqlTuplewith attribute values.final ImmutableSqlTuplewithProps(io.vertx.mutiny.sqlclient.Tuple value) Copy the current immutable object by setting a value for thepropsattribute.final ImmutableSqlTupleCopy the current immutable object by setting a value for thevalueattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.resys.thena.datasource.ThenaSqlClient.SqlTuple
failed, getPropsDeepString
-
Method Details
-
getValue
- Specified by:
getValuein interfaceThenaSqlClient.SqlTuple- Returns:
- The value of the
valueattribute
-
getProps
public io.vertx.mutiny.sqlclient.Tuple getProps()- Specified by:
getPropsin interfaceThenaSqlClient.SqlTuple- Returns:
- The value of the
propsattribute
-
withValue
Copy the current immutable object by setting a value for thevalueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value- Returns:
- A modified copy or the
thisobject
-
withProps
Copy the current immutable object by setting a value for thepropsattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for props- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofImmutableSqlTuplethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:value,props. -
toString
Prints the immutable valueSqlTuplewith attribute values. -
copyOf
Creates an immutable copy of aThenaSqlClient.SqlTuplevalue. 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 SqlTuple instance
-
builder
Creates a builder forImmutableSqlTuple.ImmutableSqlTuple.builder() .value(String) // requiredvalue.props(io.vertx.mutiny.sqlclient.Tuple) // requiredprops.build();- Returns:
- A new ImmutableSqlTuple builder
-