public interface KeyedValues2D extends Values2D
Values2D interface where a unique key is
associated with the row and column indices.| Modifier and Type | Method and Description |
|---|---|
int |
getColumnIndex(java.lang.Comparable key)
Returns the column index for a given key.
|
java.lang.Comparable |
getColumnKey(int column)
Returns the column key for a given index.
|
java.util.List |
getColumnKeys()
Returns the column keys.
|
int |
getRowIndex(java.lang.Comparable key)
Returns the row index for a given key.
|
java.lang.Comparable |
getRowKey(int row)
Returns the row key for a given index.
|
java.util.List |
getRowKeys()
Returns the row keys.
|
java.lang.Number |
getValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
Returns the value associated with the specified keys.
|
getColumnCount, getRowCount, getValuejava.lang.Comparable getRowKey(int row)
row - the row index (zero-based).java.lang.IndexOutOfBoundsException - if row is out of bounds.int getRowIndex(java.lang.Comparable key)
key - the row key.-1 if the key is unrecognised.java.util.List getRowKeys()
java.lang.Comparable getColumnKey(int column)
column - the column index (zero-based).java.lang.IndexOutOfBoundsException - if row is out of bounds.int getColumnIndex(java.lang.Comparable key)
key - the column key.-1 if the key is unrecognised.java.util.List getColumnKeys()
java.lang.Number getValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
rowKey - the row key (null not permitted).columnKey - the column key (null not permitted).UnknownKeyException - if either key is not recognised.