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:
Iterable<T>
,Collection<T>
,List<T>
public class Iterator2List<T> extends Iterator2Collection<T> implements List<T>
-
-
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 void
add(int index, T element)
boolean
addAll(int index, Collection<? extends T> c)
T
get(int index)
protected Collection<T>
getDelegate()
int
indexOf(Object o)
int
lastIndexOf(Object o)
ListIterator<T>
listIterator()
ListIterator<T>
listIterator(int index)
T
remove(int index)
T
set(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:
lastIndexOf
in interfaceList<T>
-
listIterator
public ListIterator<T> listIterator()
- Specified by:
listIterator
in interfaceList<T>
-
listIterator
public ListIterator<T> listIterator(int index)
- Specified by:
listIterator
in interfaceList<T>
-
getDelegate
protected Collection<T> getDelegate()
- Specified by:
getDelegate
in classIterator2Collection<T>
-
-