Package com.ibm.wala.util.collections
Class TwoLevelVector<T>
- java.lang.Object
-
- com.ibm.wala.util.collections.TwoLevelVector<T>
-
- All Implemented Interfaces:
IVector<T>
,java.io.Serializable
,java.lang.Iterable<T>
public class TwoLevelVector<T> extends java.lang.Object implements IVector<T>, java.io.Serializable
AnIVector
implementation which delegates to pages of int vectors.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TwoLevelVector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get(int x)
int
getMaxIndex()
java.util.Iterator<T>
iterator()
void
performVerboseAction()
void
set(int x, T value)
TODO: this can be optimized
-
-
-
Method Detail
-
set
public void set(int x, T value)
Description copied from interface:IVector
TODO: this can be optimized- Specified by:
set
in interfaceIVector<T>
- See Also:
IntVector.set(int, int)
-
performVerboseAction
public void performVerboseAction()
- Specified by:
performVerboseAction
in interfaceIVector<T>
-
iterator
public java.util.Iterator<T> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<T>
-
getMaxIndex
public int getMaxIndex()
- Specified by:
getMaxIndex
in interfaceIVector<T>
- Returns:
- max i s.t get(i) != null
-
-