Package com.ibm.wala.util.collections
Interface IVector<T>
-
- All Superinterfaces:
java.lang.Iterable<T>
- All Known Implementing Classes:
SimpleVector,SparseVector,TwoLevelVector
public interface IVector<T> extends java.lang.Iterable<T>simple interface for a vector. TODO: get rid of this and use java.util.collection.RandomAccess
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tget(int x)intgetMaxIndex()voidperformVerboseAction()voidset(int x, T value)TODO: this can be optimized
-
-
-
Method Detail
-
get
T get(int x)
-
set
void set(int x, T value)TODO: this can be optimized- See Also:
IntVector.set(int, int)
-
performVerboseAction
void performVerboseAction()
-
getMaxIndex
int getMaxIndex()
- Returns:
- max i s.t get(i) != null
-
-