Package com.ibm.wala.util.collections
Interface IVector<T>
-
- All Superinterfaces:
Iterable<T>
- All Known Implementing Classes:
SimpleVector,SparseVector,TwoLevelVector
public interface IVector<T> extends 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, @Nullable T value)TODO: this can be optimized-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
get
T get(int x)
- See Also:
IntVector.get(int)
-
set
void set(int x, @Nullable T value)TODO: this can be optimized- See Also:
IntVector.set(int, int)
-
performVerboseAction
void performVerboseAction()
- See Also:
VerboseAction.performVerboseAction()
-
getMaxIndex
int getMaxIndex()
- Returns:
- max i s.t get(i) != null
-
-