Package com.ibm.wala.util.collections
Class Iterator2List<T>
- java.lang.Object
-
- com.ibm.wala.util.collections.Iterator2Collection<T>
-
- com.ibm.wala.util.collections.Iterator2List<T>
-
- All Implemented Interfaces:
Serializable,Iterable<T>,Collection<T>,List<T>
public class Iterator2List<T> extends Iterator2Collection<T> implements Serializable, List<T>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Iterator2List(Iterator<? extends T> i, List<T> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, T element)booleanaddAll(int index, Collection<? extends T> c)Tget(int index)protected Collection<T>getDelegate()intindexOf(Object o)intlastIndexOf(Object o)ListIterator<T>listIterator()ListIterator<T>listIterator(int index)Tremove(int index)Tset(int index, T element)List<T>subList(int fromIndex, int toIndex)-
Methods inherited from class com.ibm.wala.util.collections.Iterator2Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toList, toSet, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Method Detail
-
addAll
public boolean addAll(int index, Collection<? extends T> c)
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList<T>
-
listIterator
public ListIterator<T> listIterator()
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
public ListIterator<T> listIterator(int index)
- Specified by:
listIteratorin interfaceList<T>
-
getDelegate
protected Collection<T> getDelegate()
- Specified by:
getDelegatein classIterator2Collection<T>
-
-