|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.molae.pipe.cube.AbstractCube<Integer,Object>
net.sf.molae.pipe.cube.TableModelAsCube
public class TableModelAsCube
TableModel based cube.
| Constructor Summary | |
|---|---|
TableModelAsCube(TableModel base)
Constructs a new TableModelBasedCube. |
|
| Method Summary | |
|---|---|
Object |
get(List<Integer> location)
Returns the element at the specified location. |
List<Collection<? extends Integer>> |
getEdges()
Returns the possible index values of each dimension. |
void |
put(List<Integer> location,
Object value)
Sets the element at the specified location to the specified value. |
| Methods inherited from class net.sf.molae.pipe.cube.AbstractCube |
|---|
asMap, equals, getEdge, getProjection, hashCode, putAll, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TableModelAsCube(TableModel base)
base - base TableModel
NullPointerException - if any parameter is null.| Method Detail |
|---|
public List<Collection<? extends Integer>> getEdges()
AbstractCubeedges property.
getEdges in interface Cube<Integer,Object>getEdges in class AbstractCube<Integer,Object>public Object get(List<Integer> location)
get in interface Cube<Integer,Object>get in class AbstractCube<Integer,Object>location - a list containing two Integers
representing the rowIndex and columnIndex
ClassCastException - if the first or second element of location
is not an Integer.
IndexOutOfBoundsException - if either location does not contain
two elements or the contained row or column are out of bounds.
public void put(List<Integer> location,
Object value)
put in interface Cube<Integer,Object>put in class AbstractCube<Integer,Object>location - a list containing two Integers
representing the rowIndex and columnIndexvalue - new value of the cell at the specified location
ClassCastException - if the first or second element of location
is not an Integer.
IndexOutOfBoundsException - if either location does not contain
two elements or the contained row or column are out of bounds.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||