@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableColumnRef extends Object implements ColumnRef
ColumnRef.
Use the builder to create immutable instances:
ImmutableColumnRef.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableColumnRef.Builder
Builds instances of type
ImmutableColumnRef. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableColumnRef.Builder |
builder()
Creates a builder for
ImmutableColumnRef. |
static ImmutableColumnRef |
copyOf(ColumnRef instance)
Creates an immutable copy of a
ColumnRef value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableColumnRef that have equal attribute values. |
Optional<String> |
getColumn() |
String |
getTable() |
int |
hashCode()
Computes a hash code from attributes:
table, column. |
String |
toString()
Prints the immutable value
ColumnRef with attribute values. |
ImmutableColumnRef |
withColumn(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
column attribute. |
ImmutableColumnRef |
withColumn(String value)
Copy the current immutable object by setting a present value for the optional
column attribute. |
ImmutableColumnRef |
withTable(String value)
Copy the current immutable object by setting a value for the
table attribute. |
public String getTable()
public final ImmutableColumnRef withTable(String value)
table attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for tablethis objectpublic final ImmutableColumnRef withColumn(String value)
column attribute.value - The value for columnthis objectpublic final ImmutableColumnRef withColumn(Optional<String> optional)
column attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for columnthis objectpublic boolean equals(@Nullable Object another)
ImmutableColumnRef that have equal attribute values.public int hashCode()
table, column.public String toString()
ColumnRef with attribute values.public static ImmutableColumnRef copyOf(ColumnRef instance)
ColumnRef value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableColumnRef.Builder builder()
ImmutableColumnRef.
ImmutableColumnRef.builder()
.table(String) // required table
.column(String) // optional column
.build();
Copyright © 2019 Nuiton. All rights reserved.