public interface RowView extends java.lang.Iterable<TableEntry<?>>
Modifier and Type | Method and Description |
---|---|
<T extends java.io.Serializable> |
get(ColumnDefinition<T> columnDefinition)
Returns the table entry corresponding to the given column definition.
|
TableEntry<?> |
get(int column)
Returns the entry in the given column.
|
<T extends java.io.Serializable> |
get(int column,
java.lang.Class<T> valueType)
Returns the entry in the given column with the given value type.
|
TableEntry<?> |
get(java.lang.String columnName)
Returns the entry with the given column name.
|
<T extends java.io.Serializable> |
get(java.lang.String columnName,
java.lang.Class<T> valueType)
Returns the entry in the column with the given column name, having the given value type.
|
ColumnDefinition<?> |
getColumnDefinition(int column)
Returns the definition of the column with the given index.
|
java.lang.String |
getColumnName(int column)
Returns the name of the column with the given index.
|
int |
getNumColumns()
Returns the number of entries (i.e.
|
int |
getSize()
Returns the number of entries (i.e.
|
<T extends java.io.Serializable> |
getValue(ColumnDefinition<T> columnDefinition)
Returns the value of the table entry corresponding to the given column definition.
|
java.io.Serializable |
getValue(int column)
Returns the value of the entry in the given column.
|
<T extends java.io.Serializable> |
getValue(int column,
java.lang.Class<T> valueType)
Returns the value of the entry in the given column, having the given value type.
|
java.io.Serializable |
getValue(java.lang.String columnName)
Returns the value of the entry in the column with the given column name.
|
<T extends java.io.Serializable> |
getValue(java.lang.String columnName,
java.lang.Class<T> valueType)
Returns the value of the entry in the column with the given column name, having the given value type.
|
java.lang.Class<? extends java.io.Serializable> |
getValueType(int column)
Returns the class in which the values of the given column is encoded.
|
java.lang.Class<? extends java.io.Serializable> getValueType(int column) throws java.lang.IndexOutOfBoundsException
column
- The column index of the entry.java.lang.IndexOutOfBoundsException
- Thrown if column index is invalid.java.lang.String getColumnName(int column) throws java.lang.IndexOutOfBoundsException
column
- The column index of the entry.java.lang.IndexOutOfBoundsException
- Thrown if column index is invalid.ColumnDefinition<?> getColumnDefinition(int column) throws java.lang.IndexOutOfBoundsException
column
- The column index of the entry.java.lang.IndexOutOfBoundsException
- Thrown if column index is invalid.int getSize()
getNumColumns()
.int getNumColumns()
getSize()
.TableEntry<?> get(int column) throws java.lang.IndexOutOfBoundsException
column
- The column of the entry.java.lang.IndexOutOfBoundsException
- Thrown if column index is invalid.<T extends java.io.Serializable> TableEntry<T> get(ColumnDefinition<T> columnDefinition) throws TableException, java.lang.NullPointerException
columnDefinition
- the definition of the column to return the entry of.TableException
- thrown if there is no entry corresponding to the definition, or if entry has different value type.java.lang.NullPointerException
- thrown if columnDefinition is null.<T extends java.io.Serializable> TableEntry<? extends T> get(int column, java.lang.Class<T> valueType) throws java.lang.IndexOutOfBoundsException, TableException
column
- The column of the entry.valueType
- The value type of the entry. Must be a super-class of the actual value type.java.lang.IndexOutOfBoundsException
- Thrown if column index is invalid.TableException
- Thrown if entry type is incompatible.TableEntry<?> get(java.lang.String columnName) throws TableException
columnName
- The column name of the entry.TableException
- Thrown if column with the given name does not exist.<T extends java.io.Serializable> TableEntry<? extends T> get(java.lang.String columnName, java.lang.Class<T> valueType) throws TableException
columnName
- The column name of the entry.valueType
- The value type of the entry. Must be a super-class of the actual value type.TableException
- Thrown if entry type is incompatible, or column with the given name does not exist.java.io.Serializable getValue(int column) throws java.lang.IndexOutOfBoundsException
column
- The column of the entry.java.lang.IndexOutOfBoundsException
- Thrown if column index is invalid.<T extends java.io.Serializable> T getValue(ColumnDefinition<T> columnDefinition) throws TableException, java.lang.NullPointerException
columnDefinition
- the definition of the column to return the value of the entry of.TableException
- thrown if there is no entry corresponding to the definition, or if entry has different value type.java.lang.NullPointerException
- thrown if columnDefinition is null.java.io.Serializable getValue(java.lang.String columnName) throws TableException
columnName
- The column name of the entry.TableException
- Thrown if column with the given name does not exist.<T extends java.io.Serializable> T getValue(int column, java.lang.Class<T> valueType) throws java.lang.IndexOutOfBoundsException, TableException
column
- The column of the entry.valueType
- The value type of the entry. Must be a super-class of the actual value type.java.lang.IndexOutOfBoundsException
- Thrown if column index is invalid.TableException
- Thrown if entry type is not of the given valueType.<T extends java.io.Serializable> T getValue(java.lang.String columnName, java.lang.Class<T> valueType) throws TableException
columnName
- The column name of the entry.valueType
- The value type of the entry. Must be a super-class of the actual value type.TableException
- Thrown if entry type is not of the given valueType, or if a column with the given name does not exist.