Package io.resys.thena.datasource
Class ImmutableSql
java.lang.Object
io.resys.thena.datasource.ImmutableSql
- All Implemented Interfaces:
ThenaSqlClient.Sql
@Generated(from="ThenaSqlClient.Sql",
generator="Immutables")
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableSql
extends Object
implements ThenaSqlClient.Sql
Immutable implementation of
ThenaSqlClient.Sql.
Use the builder to create immutable instances:
ImmutableSql.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableSql.Builderbuilder()Creates a builder forImmutableSql.static ImmutableSqlcopyOf(ThenaSqlClient.Sql instance) Creates an immutable copy of aThenaSqlClient.Sqlvalue.booleanThis instance is equal to all instances ofImmutableSqlthat have equal attribute values.getValue()inthashCode()Computes a hash code from attributes:value.toString()Prints the immutable valueSqlwith attribute values.final ImmutableSqlCopy 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.Sql
failed
-
Method Details
-
getValue
- Specified by:
getValuein interfaceThenaSqlClient.Sql- Returns:
- The value of the
valueattribute
-
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
-
equals
This instance is equal to all instances ofImmutableSqlthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:value. -
toString
Prints the immutable valueSqlwith attribute values. -
copyOf
Creates an immutable copy of aThenaSqlClient.Sqlvalue. 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 Sql instance
-
builder
Creates a builder forImmutableSql.ImmutableSql.builder() .value(String) // requiredvalue.build();- Returns:
- A new ImmutableSql builder
-