|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.idoox.wasp.HashSparseArray
HashMap based implementation of SparseArray.
Constructor Summary | |
HashSparseArray(int dimensions)
Deprecated. Creates a new HashSparseArray instance. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HashSparseArray(int dimensions)
HashSparseArray
instance.
dimensions
- the number of dimensions of the arrayMethod Detail |
public java.lang.Object getItem(int[] position)
null
is returned
getItem
in interface SparseArray
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.
getItem
in interface SparseArray
position
- the position
public void setItem(int[] position, java.lang.Object value)
setItem
in interface SparseArray
position
- the positionvalue
- the value to be setpublic void setItem(int position, java.lang.Object value)
setItem
in interface SparseArray
position
- the positionvalue
- the value to be setpublic java.util.Iterator getPositions()
ints
.
getPositions
in interface SparseArray
public int[] getDimensions()
getDimensions
in interface SparseArray
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |