@Deprecated @Immutable public final class TextValue extends java.lang.Object implements Value<java.util.Optional<java.lang.String>>
Value
(column) for a stringConstructor and Description |
---|
TextValue(byte[] value)
Deprecated.
As of release 3.5.0. Will be removed in release 5.0.0
|
TextValue(java.lang.String value)
Deprecated.
Constructs a
TextValue with the specified value. |
TextValue(java.lang.String name,
byte[] value)
Deprecated.
As of release 3.5.0. Will be removed in release 5.0.0
|
TextValue(java.lang.String name,
java.lang.String value)
Deprecated.
Constructs a
TextValue with the specified name and value |
Modifier and Type | Method and Description |
---|---|
void |
accept(ValueVisitor v)
Deprecated.
Accepts a
ValueVisitor to be able to be traversed. |
int |
compareTo(Value<java.util.Optional<java.lang.String>> o)
Deprecated.
|
TextValue |
copyWith(java.lang.String name)
Deprecated.
Creates a copy of the value (column) with the specified name.
|
boolean |
equals(java.lang.Object o)
Deprecated.
Indicates whether some other object is "equal to" this object.
|
java.util.Optional<java.lang.String> |
get()
Deprecated.
Returns the value of this
Value (column). |
java.util.Optional<java.nio.ByteBuffer> |
getAsByteBuffer()
Deprecated.
Returns the value of this
Value (column) as a byte buffer. |
java.util.Optional<byte[]> |
getAsBytes()
Deprecated.
Returns the value of this
Value (column) as a byte array type. |
java.util.Optional<java.lang.String> |
getAsString()
Deprecated.
Returns the value of this
Value (column) as a string type. |
java.util.Optional<byte[]> |
getBytes()
Deprecated.
As of release 3.2.0, replaced by
getAsBytes() . Will be removed in release
5.0.0 |
DataType |
getDataType()
Deprecated.
Returns the data type of this
Value (column). |
java.lang.String |
getName()
Deprecated.
Returns the name of the value (column).
|
java.util.Optional<java.lang.String> |
getString()
Deprecated.
As of release 3.2.0, replaced by
getAsString() . Will be removed in release
5.0.0 |
int |
hashCode()
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAsBoolean, getAsDouble, getAsFloat, getAsInt, getAsLong
@Deprecated public TextValue(java.lang.String name, @Nullable byte[] value)
TextValue
with the specified name and valuename
- name of the Value
(column)value
- value of the Value
(column) in byte array@Deprecated public TextValue(@Nullable byte[] value)
TextValue
with the specified value. The name of this value (column) is
anonymous.value
- value of the Value
(column)public TextValue(java.lang.String name, @Nullable java.lang.String value)
TextValue
with the specified name and valuename
- name of the Value
(column)value
- value of the Value
(column) in String
public TextValue(@Nullable java.lang.String value)
TextValue
with the specified value. The name of this value (column) is
anonymous.value
- value of the Value
(column)@Nonnull public java.util.Optional<java.lang.String> get()
Value
Value
(column).public DataType getDataType()
Value
Value
(column).getDataType
in interface Value<java.util.Optional<java.lang.String>>
Value
(column)@Deprecated @Nonnull public java.util.Optional<byte[]> getBytes()
getAsBytes()
. Will be removed in release
5.0.0Value
(column)Optional
of the content of this Value
in byte array@Deprecated @Nonnull public java.util.Optional<java.lang.String> getString()
getAsString()
. Will be removed in release
5.0.0Value
(column)Optional
of the content of this Value
in String
public java.util.Optional<java.lang.String> getAsString()
Value
Value
(column) as a string type.getAsString
in interface Value<java.util.Optional<java.lang.String>>
Value
(column)public java.util.Optional<byte[]> getAsBytes()
Value
Value
(column) as a byte array type.getAsBytes
in interface Value<java.util.Optional<java.lang.String>>
Value
(column)public java.util.Optional<java.nio.ByteBuffer> getAsByteBuffer()
Value
Value
(column) as a byte buffer.getAsByteBuffer
in interface Value<java.util.Optional<java.lang.String>>
Value
(column)@Nonnull public java.lang.String getName()
Value
public TextValue copyWith(java.lang.String name)
Value
public void accept(ValueVisitor v)
Value
ValueVisitor
to be able to be traversed.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
TextValue
and
equals
in class java.lang.Object
o
- an object to be tested for equalitytrue
if the other object is "equal to" this object otherwise false
public java.lang.String toString()
toString
in class java.lang.Object