|
JanosVM v1.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.utah.janosvm.kit.util.SparseArrayDimension
The objects that make up the SparseArray's X dimension.
Field Summary | |
private SparseArrayElement[] |
elements
The elements themselves. |
private SparseArrayElement |
freeElements
The list of free elements in this dimension. |
private int |
inUse
The number of elements in use. |
private SparseArrayElement |
lastElement
The last element in the free list. |
private SparseArray |
sa
The SparseArray this dimension is a part of. |
private long |
timeID
The present delay value. |
Constructor Summary | |
(package private) |
SparseArrayDimension(int xIndex,
SparseArray sa)
Construct a SparseArrayDimension with the given values. |
Method Summary | |
(package private) void |
dropElement(SparseArrayElement sae)
|
(package private) void |
elements(java.util.Vector v)
Add any allocated elements to the given vector. |
(package private) SparseArrayElement |
findElement(int yIndex,
long id)
Find an element in this dimension. |
(package private) SparseArrayElement |
getElement()
|
(package private) boolean |
hasFreeElements()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait, wait0 |
Field Detail |
private SparseArray sa
private SparseArrayElement freeElements
private SparseArrayElement lastElement
private int inUse
private long timeID
private final SparseArrayElement[] elements
Constructor Detail |
SparseArrayDimension(int xIndex, SparseArray sa) throws java.lang.InstantiationException, java.lang.IllegalAccessException
xIndex
- The X index in the SparseArray.sa
- The SparseArray this dimension belongs too.Method Detail |
boolean hasFreeElements()
SparseArrayElement getElement()
void dropElement(SparseArrayElement sae)
sae
- The element to be freed.SparseArrayElement findElement(int yIndex, long id)
yIndex
- The Y index of the element.id
- The whole id of the element.void elements(java.util.Vector v)
v
- A vector to add allocated elements to.public java.lang.String toString()
toString
in class java.lang.Object
|
JanosVM v1.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |