public final class DefaultKeyedValues3D<V> extends java.lang.Object implements KeyedValues3D<V>, java.io.Serializable
KeyedValues3D interface.
| Constructor and Description |
|---|
DefaultKeyedValues3D()
Creates a new (empty) table.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object.
|
int |
getColumnCount()
Returns the number of items in the z-dimension.
|
int |
getColumnIndex(java.lang.Comparable<?> columnKey)
Returns the index for the specified column key, or
-1 if
the key is not present in this data structure. |
java.lang.Comparable<?> |
getColumnKey(int columnIndex)
Returns the column key with the specified index.
|
java.util.List<java.lang.Comparable<?>> |
getColumnKeys()
Returns a list of the column keys for the data.
|
double |
getDoubleValue(int seriesIndex,
int rowIndex,
int columnIndex)
Returns the data item at the specified position as a double primitive.
|
int |
getRowCount()
Returns the number of items in the y-dimension.
|
int |
getRowIndex(java.lang.Comparable<?> rowKey)
Returns the index for the specified row key, or
-1 if
the key is not present in this data structure. |
java.lang.Comparable<?> |
getRowKey(int rowIndex)
Returns the row key with the specified index.
|
java.util.List<java.lang.Comparable<?>> |
getRowKeys()
Returns a list of the row keys for the data.
|
int |
getSeriesCount()
Returns the number of items in the x-dimension.
|
int |
getSeriesIndex(java.lang.Comparable<?> seriesKey)
Returns the index for the specified series key, or
-1 if
the key is not present in this data structure. |
java.lang.Comparable<?> |
getSeriesKey(int seriesIndex)
Returns the series key with the specified index.
|
java.util.List<java.lang.Comparable<?>> |
getSeriesKeys()
Returns a list of the series keys for the data.
|
V |
getValue(java.lang.Comparable<?> seriesKey,
java.lang.Comparable<?> rowKey,
java.lang.Comparable<?> columnKey)
Returns the value for the specified data item.
|
V |
getValue(int seriesIndex,
int rowIndex,
int columnIndex)
Returns the data item at the specified position.
|
void |
setValue(V n,
java.lang.Comparable<?> seriesKey,
java.lang.Comparable<?> rowKey,
java.lang.Comparable<?> columnKey)
Sets the value for an item in a series, overwriting any existing value.
|
public DefaultKeyedValues3D()
public java.lang.Comparable<?> getSeriesKey(int seriesIndex)
getSeriesKey in interface KeyedValues3D<V>seriesIndex - the series index.public java.lang.Comparable<?> getRowKey(int rowIndex)
getRowKey in interface KeyedValues3D<V>rowIndex - the row index.public java.lang.Comparable<?> getColumnKey(int columnIndex)
getColumnKey in interface KeyedValues3D<V>columnIndex - the column index.public int getSeriesIndex(java.lang.Comparable<?> seriesKey)
-1 if
the key is not present in this data structure.getSeriesIndex in interface KeyedValues3D<V>seriesKey - the series key (null not permitted).-1.public int getRowIndex(java.lang.Comparable<?> rowKey)
-1 if
the key is not present in this data structure.getRowIndex in interface KeyedValues3D<V>rowKey - the row key (null not permitted).-1.public int getColumnIndex(java.lang.Comparable<?> columnKey)
-1 if
the key is not present in this data structure.getColumnIndex in interface KeyedValues3D<V>columnKey - the column key (null not permitted).-1.public java.util.List<java.lang.Comparable<?>> getSeriesKeys()
getSeriesKeys in interface KeyedValues3D<V>null).public java.util.List<java.lang.Comparable<?>> getRowKeys()
getRowKeys in interface KeyedValues3D<V>null).public java.util.List<java.lang.Comparable<?>> getColumnKeys()
getColumnKeys in interface KeyedValues3D<V>null).public int getSeriesCount()
Values3DgetSeriesCount in interface Values3D<V>public int getRowCount()
Values3DgetRowCount in interface Values3D<V>public int getColumnCount()
Values3DgetColumnCount in interface Values3D<V>public V getValue(int seriesIndex, int rowIndex, int columnIndex)
Values3Dpublic V getValue(java.lang.Comparable<?> seriesKey, java.lang.Comparable<?> rowKey, java.lang.Comparable<?> columnKey)
IllegalArgumentException if the dataset does not
contain the specified keys.getValue in interface KeyedValues3D<V>seriesKey - the series key (null not permitted).rowKey - the row key (null not permitted).columnKey - the column key (null not permitted).null).public double getDoubleValue(int seriesIndex, int rowIndex, int columnIndex)
Values3DValues3D.getValue(int, int, int) method returns
null, this method returns Double.NaN.getDoubleValue in interface Values3D<V>seriesIndex - the series index.rowIndex - the row index.columnIndex - the column index.public void setValue(V n, java.lang.Comparable<?> seriesKey, java.lang.Comparable<?> rowKey, java.lang.Comparable<?> columnKey)
n - the value (null permitted).seriesKey - the series key (null not permitted).rowKey - the row key (null not permitted).columnKey - the column key (null not permitted).public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object (null permitted).