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().

  • Method Details

    • getValue

      public String getValue()
      Specified by:
      getValue in interface ThenaSqlClient.SqlTupleList
      Returns:
      The value of the value attribute
    • getProps

      public com.google.common.collect.ImmutableList<io.vertx.mutiny.sqlclient.Tuple> getProps()
      Specified by:
      getProps in interface ThenaSqlClient.SqlTupleList
      Returns:
      The value of the props attribute
    • withValue

      public final ImmutableSqlTupleList withValue(String value)
      Copy the current immutable object by setting a value for the value attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for value
      Returns:
      A modified copy or the this object
    • withProps

      public final ImmutableSqlTupleList withProps(io.vertx.mutiny.sqlclient.Tuple... elements)
      Copy the current immutable object with elements that replace the content of props.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withProps

      public final ImmutableSqlTupleList withProps(Iterable<? extends io.vertx.mutiny.sqlclient.Tuple> elements)
      Copy the current immutable object with elements that replace the content of props. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of props elements to set
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(Object another)
      This instance is equal to all instances of ImmutableSqlTupleList that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: value, props.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value SqlTupleList with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableSqlTupleList copyOf(ThenaSqlClient.SqlTupleList instance)
      Creates an immutable copy of a ThenaSqlClient.SqlTupleList value. 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 for ImmutableSqlTupleList.
       ImmutableSqlTupleList.builder()
          .value(String) // required value
          .addProps|addAllProps(io.vertx.mutiny.sqlclient.Tuple) // props elements
          .build();
       
      Returns:
      A new ImmutableSqlTupleList builder