JanosVM v1.0 API

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.


Field Summary
private  long id
          The elements unique id.
private static SparseArrayElement IS_ALLOCATED
           
private  SparseArrayElement next
          The next element in the list.
 
Constructor Summary
protected SparseArrayElement()
           
 
Method Summary
protected  void dropped()
          Method called when the element is returned to the array.
 boolean equals(java.lang.Object obj)
           
 long getID()
           
(package private)  SparseArrayElement getNext()
           
 int hashCode()
           
(package private)  boolean isAllocated()
           
(package private)  void obtain()
          Obtain this element for use.
(package private)  void release(int timeOffset)
          Release this element from use.
(package private)  void setID(long id)
           
(package private)  void setNext(SparseArrayElement next)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait, wait0
 

Field Detail

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.
Constructor Detail

SparseArrayElement

protected SparseArrayElement()
Method Detail

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

JanosVM v1.0 API

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