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

  • Method Details

    • getValue

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

      public io.vertx.mutiny.sqlclient.Tuple getProps()
      Specified by:
      getProps in interface ThenaSqlClient.SqlTuple
      Returns:
      The value of the props attribute
    • withValue

      public final ImmutableSqlTuple 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 ImmutableSqlTuple withProps(io.vertx.mutiny.sqlclient.Tuple value)
      Copy the current immutable object by setting a value for the props attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for props
      Returns:
      A modified copy or the this object
    • equals

      public boolean equals(Object another)
      This instance is equal to all instances of ImmutableSqlTuple 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 SqlTuple with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableSqlTuple copyOf(ThenaSqlClient.SqlTuple instance)
      Creates an immutable copy of a ThenaSqlClient.SqlTuple 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 SqlTuple instance
    • builder

      public static ImmutableSqlTuple.Builder builder()
      Creates a builder for ImmutableSqlTuple.
       ImmutableSqlTuple.builder()
          .value(String) // required value
          .props(io.vertx.mutiny.sqlclient.Tuple) // required props
          .build();
       
      Returns:
      A new ImmutableSqlTuple builder