T
- Type encoding the value.public interface TableEntry<T extends java.io.Serializable>
extends java.io.Serializable, java.lang.Cloneable
Modifier and Type | Method and Description |
---|---|
T |
getValue()
Returns the value of the entry, or null if the entry is null.
|
java.lang.String |
getValueAsString()
Returns a string representation of the table entry.
|
java.lang.Class<T> |
getValueType()
Returns the class in which the value is encoded.
|
boolean |
isNull()
Returns true if entry is null, i.e.
|
boolean |
isNullAllowed()
Returns true if this entry allows values to be set to null.
|
void |
setValue(java.io.Serializable value)
Sets the table value to the given argument.
|
void |
setValue(TableEntry<? extends java.io.Serializable> tableEntry)
Sets the table value to the given tableEntry value.
|
boolean isNull()
java.lang.String getValueAsString()
Object.toString()
function, since
null will be returned when the value of this entry is not set, whereas the toString() function should return a non-null value.T getValue()
void setValue(java.io.Serializable value) throws TableException
value
- Value to set table entry to.TableException
- Thrown if value type is not assignable to this entry, or value is null and null values are not allowed.void setValue(TableEntry<? extends java.io.Serializable> tableEntry) throws TableException
tableEntry
- Entry to copy the value from.TableException
- Thrown if value type is not assignable to this entry, or if value of entry is null and null values are not allowed.java.lang.Class<T> getValueType()
boolean isNullAllowed()