|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents a 'sparse' array, an array in which most elements have the default value.
| Method Summary | |
int[] |
getDimensions()
Deprecated. Returns an array of dimensions. |
java.lang.Object |
getItem(int position)
Deprecated. Returns item at the given position. |
java.lang.Object |
getItem(int[] position)
Deprecated. Returns item at the given position. |
java.util.Iterator |
getPositions()
Deprecated. Returns a set of positions. |
void |
setItem(int[] position,
java.lang.Object value)
Deprecated. Sets item at the given position. |
void |
setItem(int position,
java.lang.Object value)
Deprecated. Sets item at the given position. |
| Method Detail |
public java.lang.Object getItem(int[] position)
null is returned.
position - the position
null if the position
is unoccupiedpublic java.lang.Object getItem(int position)
null is returned. This is just a helper function
for one dimensional case.
position - the position
public void setItem(int[] position,
java.lang.Object value)
position - the positionvalue - the value to be set
public void setItem(int position,
java.lang.Object value)
position - the positionvalue - the value to be setpublic java.util.Iterator getPositions()
ints.
public int[] getDimensions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||