Package com.ibm.wala.util.collections
Class SimpleVector<T>
- java.lang.Object
-
- com.ibm.wala.util.collections.SimpleVector<T>
-
-
Constructor Summary
Constructors Constructor Description SimpleVector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tget(int x)intgetMaxIndex()Iterator<T>iterator()voidperformVerboseAction()voidset(int x, @Nullable T value)TODO: this can be optimized-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
get
@NullUnmarked public T get(int x)
- Specified by:
getin interfaceIVector<T>- See Also:
IntVector.get(int)
-
set
public void set(int x, @Nullable T value)Description copied from interface:IVectorTODO: this can be optimized- Specified by:
setin interfaceIVector<T>- See Also:
IntVector.set(int, int)
-
performVerboseAction
public void performVerboseAction()
- Specified by:
performVerboseActionin interfaceIVector<T>- See Also:
VerboseAction.performVerboseAction()
-
getMaxIndex
public int getMaxIndex()
- Specified by:
getMaxIndexin interfaceIVector<T>- Returns:
- max i s.t get(i) != null
-
-