Class ImmutableColumnRef
java.lang.Object
org.nuiton.db.meta.ImmutableColumnRef
- All Implemented Interfaces:
ColumnRef
@Generated(from="ColumnRef",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableColumnRef
extends Object
implements ColumnRef
Immutable implementation of
ColumnRef.
Use the builder to create immutable instances:
ImmutableColumnRef.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableColumnRef.Builderbuilder()Creates a builder forImmutableColumnRef.static ImmutableColumnRefCreates an immutable copy of aColumnRefvalue.booleanThis instance is equal to all instances ofImmutableColumnRefthat have equal attribute values.getTable()inthashCode()Computes a hash code from attributes:table,column.toString()Prints the immutable valueColumnRefwith attribute values.final ImmutableColumnRefwithColumn(String value) Copy the current immutable object by setting a present value for the optionalcolumnattribute.final ImmutableColumnRefwithColumn(Optional<String> optional) Copy the current immutable object by setting an optional value for thecolumnattribute.final ImmutableColumnRefCopy the current immutable object by setting a value for thetableattribute.
-
Method Details
-
getTable
-
getColumn
-
withTable
Copy the current immutable object by setting a value for thetableattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for table- Returns:
- A modified copy or the
thisobject
-
withColumn
Copy the current immutable object by setting a present value for the optionalcolumnattribute.- Parameters:
value- The value for column- Returns:
- A modified copy or
thisif not changed
-
withColumn
Copy the current immutable object by setting an optional value for thecolumnattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for column- Returns:
- A modified copy or
thisif not changed
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aColumnRefvalue. 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 ColumnRef instance
-
builder
Creates a builder forImmutableColumnRef.ImmutableColumnRef.builder() .table(String) // required
table.column(Optional<String>) // optionalcolumn.build();- Returns:
- A new ImmutableColumnRef builder
-