Package io.resys.thena.docdb.spi.sql
Class ImmutableSqlTupleList
- java.lang.Object
-
- io.resys.thena.docdb.spi.sql.ImmutableSqlTupleList
-
- All Implemented Interfaces:
SqlBuilder.SqlTupleList
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableSqlTupleList extends Object implements SqlBuilder.SqlTupleList
Immutable implementation ofSqlBuilder.SqlTupleList.Use the builder to create immutable instances:
ImmutableSqlTupleList.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableSqlTupleList.BuilderBuilds instances of typeImmutableSqlTupleList.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableSqlTupleList.Builderbuilder()Creates a builder forImmutableSqlTupleList.static ImmutableSqlTupleListcopyOf(SqlBuilder.SqlTupleList instance)Creates an immutable copy of aSqlBuilder.SqlTupleListvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableSqlTupleListthat have equal attribute values.com.google.common.collect.ImmutableList<io.vertx.mutiny.sqlclient.Tuple>getProps()StringgetValue()inthashCode()Computes a hash code from attributes:value,props.StringtoString()Prints the immutable valueSqlTupleListwith attribute values.ImmutableSqlTupleListwithProps(io.vertx.mutiny.sqlclient.Tuple... elements)Copy the current immutable object with elements that replace the content ofprops.ImmutableSqlTupleListwithProps(Iterable<? extends io.vertx.mutiny.sqlclient.Tuple> elements)Copy the current immutable object with elements that replace the content ofprops.ImmutableSqlTupleListwithValue(String value)Copy the current immutable object by setting a value for thevalueattribute.
-
-
-
Method Detail
-
getValue
public String getValue()
- Specified by:
getValuein interfaceSqlBuilder.SqlTupleList- Returns:
- The value of the
valueattribute
-
getProps
public com.google.common.collect.ImmutableList<io.vertx.mutiny.sqlclient.Tuple> getProps()
- Specified by:
getPropsin interfaceSqlBuilder.SqlTupleList- Returns:
- The value of the
propsattribute
-
withValue
public final ImmutableSqlTupleList 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 ImmutableSqlTupleList withProps(io.vertx.mutiny.sqlclient.Tuple... elements)
Copy the current immutable object with elements that replace the content ofprops.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withProps
public final ImmutableSqlTupleList withProps(Iterable<? extends io.vertx.mutiny.sqlclient.Tuple> elements)
Copy the current immutable object with elements that replace the content ofprops. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of props elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutableSqlTupleListthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:value,props.
-
toString
public String toString()
Prints the immutable valueSqlTupleListwith attribute values.
-
copyOf
public static ImmutableSqlTupleList copyOf(SqlBuilder.SqlTupleList instance)
Creates an immutable copy of aSqlBuilder.SqlTupleListvalue. 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 SqlTupleList instance
-
builder
public static ImmutableSqlTupleList.Builder builder()
Creates a builder forImmutableSqlTupleList.ImmutableSqlTupleList.builder() .value(String) // requiredvalue.addProps|addAllProps(io.vertx.mutiny.sqlclient.Tuple) //propselements .build();- Returns:
- A new ImmutableSqlTupleList builder
-
-