edu.utah.janosvm.kit.util
Class SparseArrayElement
java.lang.Object
|
+--edu.utah.janosvm.kit.util.SparseArrayElement
- Direct Known Subclasses:
- ObjectSparseArrayElement
- public class SparseArrayElement
- extends java.lang.Object
The elements that make up the sparse array.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait, wait0 |
IS_ALLOCATED
private static final SparseArrayElement IS_ALLOCATED
next
private SparseArrayElement next
- The next element in the list.
id
private long id
- The elements unique id.
SparseArrayElement
protected SparseArrayElement()
setNext
void setNext(SparseArrayElement next)
- Parameters:
next
- The next element in the list.
getNext
SparseArrayElement getNext()
- Returns:
- The value of next.
setID
void setID(long id)
- Parameters:
id
- The unique identifier.
getID
public long getID()
- Returns:
- The unique identifier.
obtain
void obtain()
- Obtain this element for use.
release
void release(int timeOffset)
- Release this element from use.
- Parameters:
timeOffset
- The offset of the time bits in the unique identifier.
dropped
protected void dropped()
- Method called when the element is returned to the array.
isAllocated
boolean isAllocated()
- Returns:
- True if the element is allocated.
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
This documentation is Copyright (C) 2000-2003 The University of Utah. All Rights Reserved. See the documentation license for distribution terms and restrictions.
Documentation, software, and mailing lists for the JanosVM can be found at the Janos Project web page: http://www.cs.utah.edu/flux/janos/
Generated on Feb 13, 2003