@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableColumn extends java.lang.Object implements TextReader.Column
TextReader.Column.
Use the builder to create immutable instances:
ImmutableColumn.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableColumn.Builder
Builds instances of type
ImmutableColumn. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableColumn.Builder |
builder()
Creates a builder for
ImmutableColumn. |
static ImmutableColumn |
copyOf(TextReader.Column instance)
Creates an immutable copy of a
TextReader.Column value. |
boolean |
equals(java.lang.Object another)
This instance is equal to all instances of
ImmutableColumn that have equal attribute values. |
int |
getLength() |
java.lang.String |
getName() |
TextReader.Type |
getType() |
int |
hashCode()
Computes a hash code from attributes:
length, name, type. |
java.lang.String |
toString()
Prints the immutable value
Column with attribute values. |
ImmutableColumn |
withLength(int value)
Copy the current immutable object by setting a value for the
length attribute. |
ImmutableColumn |
withName(java.lang.String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableColumn |
withType(TextReader.Type value)
Copy the current immutable object by setting a value for the
type attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitvalidatepublic int getLength()
getLength in interface TextReader.Columnlength attributepublic java.lang.String getName()
getName in interface TextReader.Columnname attributepublic TextReader.Type getType()
getType in interface TextReader.Columntype attributepublic final ImmutableColumn withLength(int value)
length attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for lengththis objectpublic final ImmutableColumn withName(java.lang.String value)
name attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for namethis objectpublic final ImmutableColumn withType(TextReader.Type value)
type attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for typethis objectpublic boolean equals(@Nullable
java.lang.Object another)
ImmutableColumn that have equal attribute values.equals in class java.lang.Objecttrue if this is equal to another instancepublic int hashCode()
length, name, type.hashCode in class java.lang.Objectpublic java.lang.String toString()
Column with attribute values.toString in class java.lang.Objectpublic static ImmutableColumn copyOf(TextReader.Column instance)
TextReader.Column 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 ImmutableColumn.Builder builder()
ImmutableColumn.