Package io.resys.thena.docdb.spi.sql
Class ImmutableSqlTuple
- java.lang.Object
-
- io.resys.thena.docdb.spi.sql.ImmutableSqlTuple
-
- All Implemented Interfaces:
SqlBuilder.SqlTuple
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableSqlTuple extends Object implements SqlBuilder.SqlTuple
Immutable implementation ofSqlBuilder.SqlTuple.Use the builder to create immutable instances:
ImmutableSqlTuple.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableSqlTuple.BuilderBuilds instances of typeImmutableSqlTuple.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableSqlTuple.Builderbuilder()Creates a builder forImmutableSqlTuple.static ImmutableSqlTuplecopyOf(SqlBuilder.SqlTuple instance)Creates an immutable copy of aSqlBuilder.SqlTuplevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableSqlTuplethat have equal attribute values.io.vertx.mutiny.sqlclient.TuplegetProps()StringgetValue()inthashCode()Computes a hash code from attributes:value,props.StringtoString()Prints the immutable valueSqlTuplewith attribute values.ImmutableSqlTuplewithProps(io.vertx.mutiny.sqlclient.Tuple value)Copy the current immutable object by setting a value for thepropsattribute.ImmutableSqlTuplewithValue(String value)Copy the current immutable object by setting a value for thevalueattribute.
-
-
-
Method Detail
-
getValue
public String getValue()
- Specified by:
getValuein interfaceSqlBuilder.SqlTuple- Returns:
- The value of the
valueattribute
-
getProps
public io.vertx.mutiny.sqlclient.Tuple getProps()
- Specified by:
getPropsin interfaceSqlBuilder.SqlTuple- Returns:
- The value of the
propsattribute
-
withValue
public final ImmutableSqlTuple withValue(String value)
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 of the
thisobject
-
withProps
public final ImmutableSqlTuple withProps(io.vertx.mutiny.sqlclient.Tuple value)
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 of the
thisobject
-
equals
public boolean equals(@Nullable Object another)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
public String toString()
Prints the immutable valueSqlTuplewith attribute values.
-
copyOf
public static ImmutableSqlTuple copyOf(SqlBuilder.SqlTuple instance)
Creates an immutable copy of aSqlBuilder.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
public static ImmutableSqlTuple.Builder builder()
Creates a builder forImmutableSqlTuple.ImmutableSqlTuple.builder() .value(String) // requiredvalue.props(io.vertx.mutiny.sqlclient.Tuple) // requiredprops.build();- Returns:
- A new ImmutableSqlTuple builder
-
-