org.egothor.util
Class LongAndIntegerArray

java.lang.Object
  extended by org.egothor.util.LongAndIntegerArray

public class LongAndIntegerArray
extends java.lang.Object

This class offers a dynamic array of {long;integer}s. The array is technically broken up into several smaller arrays of size 2FRAGSIZE2POW. If the array fragment does not contain any value it is not allocated at all and its values are supposed to be 0.


Constructor Summary
LongAndIntegerArray()
           
 
Method Summary
 void clear()
           
 int get32(int index)
           
 long get64(int index)
           
 int highestSet()
          Highest index set by @{link #set} method.
 void set(int index, long value64, int value32)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongAndIntegerArray

public LongAndIntegerArray()
Method Detail

clear

public void clear()

highestSet

public int highestSet()
Highest index set by @{link #set} method.

Returns:
the highest offset occupied by some user-set value, or -1 when @{link #set} was not called yet
See Also:
set(int, long, int)

set

public void set(int index,
                long value64,
                int value32)

get32

public int get32(int index)

get64

public long get64(int index)