S - the series key (must implement Comparable).R - the row key (must implement Comparable).C - the column key (must implement Comparable).V - the value type.public final class DefaultKeyedValues3D<S extends java.lang.Comparable<S>,R extends java.lang.Comparable<R>,C extends java.lang.Comparable<C>,V> extends java.lang.Object implements KeyedValues3D<S,R,C,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(C columnKey)
Returns the index for the specified column key, or
-1 if
the key is not present in this data structure. |
C |
getColumnKey(int columnIndex)
Returns the column key with the specified index.
|
java.util.List<C> |
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(R rowKey)
Returns the index for the specified row key, or
-1 if
the key is not present in this data structure. |
R |
getRowKey(int rowIndex)
Returns the row key with the specified index.
|
java.util.List<R> |
getRowKeys()
Returns a list of the row keys for the data.
|
int |
getSeriesCount()
Returns the number of items in the x-dimension.
|
int |
getSeriesIndex(S seriesKey)
Returns the index for the specified series key, or
-1 if
the key is not present in this data structure. |
S |
getSeriesKey(int seriesIndex)
Returns the series key with the specified index.
|
java.util.List<S> |
getSeriesKeys()
Returns a list of the series keys for the data.
|
V |
getValue(int seriesIndex,
int rowIndex,
int columnIndex)
Returns the data item at the specified position.
|
V |
getValue(S seriesKey,
R rowKey,
C columnKey)
Returns the value for the specified data item.
|
void |
setValue(V n,
S seriesKey,
R rowKey,
C columnKey)
Sets the value for an item in a series, overwriting any existing value.
|
public DefaultKeyedValues3D()
public S getSeriesKey(int seriesIndex)
getSeriesKey in interface KeyedValues3D<S extends java.lang.Comparable<S>,R extends java.lang.Comparable<R>,C extends java.lang.Comparable<C>,V>seriesIndex - the series index.public C getColumnKey(int columnIndex)
getColumnKey in interface KeyedValues3D<S extends java.lang.Comparable<S>,R extends java.lang.Comparable<R>,C extends java.lang.Comparable<C>,V>columnIndex - the column index.public int getSeriesIndex(S seriesKey)
-1 if
the key is not present in this data structure.getSeriesIndex in interface KeyedValues3D<S extends java.lang.Comparable<S>,R extends java.lang.Comparable<R>,C extends java.lang.Comparable<C>,V>seriesKey - the series key (null not permitted).-1.public int getRowIndex(R rowKey)
-1 if
the key is not present in this data structure.getRowIndex in interface KeyedValues3D<S extends java.lang.Comparable<S>,R extends java.lang.Comparable<R>,C extends java.lang.Comparable<C>,V>rowKey - the row key (null not permitted).-1.public int getColumnIndex(C columnKey)
-1 if
the key is not present in this data structure.getColumnIndex in interface KeyedValues3D<S extends java.lang.Comparable<S>,R extends java.lang.Comparable<R>,C extends java.lang.Comparable<C>,V>columnKey - the column key (null not permitted).-1.public java.util.List<S> getSeriesKeys()
getSeriesKeys in interface KeyedValues3D<S extends java.lang.Comparable<S>,R extends java.lang.Comparable<R>,C extends java.lang.Comparable<C>,V>null).public java.util.List<R> getRowKeys()
getRowKeys in interface KeyedValues3D<S extends java.lang.Comparable<S>,R extends java.lang.Comparable<R>,C extends java.lang.Comparable<C>,V>null).public java.util.List<C> getColumnKeys()
getColumnKeys in interface KeyedValues3D<S extends java.lang.Comparable<S>,R extends java.lang.Comparable<R>,C extends java.lang.Comparable<C>,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(S seriesKey, R rowKey, C columnKey)
IllegalArgumentException if the dataset does not
contain the specified keys.getValue in interface KeyedValues3D<S extends java.lang.Comparable<S>,R extends java.lang.Comparable<R>,C extends java.lang.Comparable<C>,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, S seriesKey, R rowKey, C 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).