Package io.resys.thena.datasource
Class ImmutableSqlTupleList
java.lang.Object
io.resys.thena.datasource.ImmutableSqlTupleList
- All Implemented Interfaces:
ThenaSqlClient.SqlTupleList
@Generated(from="ThenaSqlClient.SqlTupleList",
generator="Immutables")
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableSqlTupleList
extends Object
implements ThenaSqlClient.SqlTupleList
Immutable implementation of
ThenaSqlClient.SqlTupleList.
Use the builder to create immutable instances:
ImmutableSqlTupleList.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableSqlTupleList. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableSqlTupleList.static ImmutableSqlTupleListcopyOf(ThenaSqlClient.SqlTupleList instance) Creates an immutable copy of aThenaSqlClient.SqlTupleListvalue.booleanThis instance is equal to all instances ofImmutableSqlTupleListthat have equal attribute values.com.google.common.collect.ImmutableList<io.vertx.mutiny.sqlclient.Tuple> getProps()getValue()inthashCode()Computes a hash code from attributes:value,props.toString()Prints the immutable valueSqlTupleListwith attribute values.final ImmutableSqlTupleListwithProps(io.vertx.mutiny.sqlclient.Tuple... elements) Copy the current immutable object with elements that replace the content ofprops.final ImmutableSqlTupleListCopy the current immutable object with elements that replace the content ofprops.final ImmutableSqlTupleListCopy 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.SqlTupleList
failed, getPropsDeepString
-
Method Details
-
getValue
- Specified by:
getValuein interfaceThenaSqlClient.SqlTupleList- Returns:
- The value of the
valueattribute
-
getProps
public com.google.common.collect.ImmutableList<io.vertx.mutiny.sqlclient.Tuple> getProps()- Specified by:
getPropsin interfaceThenaSqlClient.SqlTupleList- 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 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 or
thisif not changed
-
equals
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
Prints the immutable valueSqlTupleListwith attribute values. -
copyOf
Creates an immutable copy of aThenaSqlClient.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
Creates a builder forImmutableSqlTupleList.ImmutableSqlTupleList.builder() .value(String) // requiredvalue.addProps|addAllProps(io.vertx.mutiny.sqlclient.Tuple) //propselements .build();- Returns:
- A new ImmutableSqlTupleList builder
-