public class TwoLevelVector<T> extends Object implements IVector<T>, Serializable
IVector implementation which delegates to pages of int vectors.| Constructor and Description |
|---|
TwoLevelVector() |
| Modifier and Type | Method and Description |
|---|---|
T |
get(int x) |
int |
getMaxIndex() |
Iterator<T> |
iterator() |
void |
performVerboseAction() |
void |
set(int x,
T value)
TODO: this can be optimized
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic T get(int x)
get in interface IVector<T>IntVector.get(int)public void set(int x,
T value)
IVectorset in interface IVector<T>IntVector.set(int, int)public void performVerboseAction()
performVerboseAction in interface IVector<T>VerboseAction.performVerboseAction()public Iterator<T> iterator()
iterator in interface Iterable<T>IntSet.intIterator()public int getMaxIndex()
getMaxIndex in interface IVector<T>