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:
java.lang.Iterable<T>
,java.util.Collection<T>
,java.util.List<T>
public class Iterator2List<T> extends Iterator2Collection<T> implements java.util.List<T>
-
-
Constructor Summary
Constructors Constructor Description Iterator2List(java.util.Iterator<? extends T> i, java.util.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, java.util.Collection<? extends T> c)
T
get(int index)
protected java.util.Collection<T>
getDelegate()
int
indexOf(java.lang.Object o)
int
lastIndexOf(java.lang.Object o)
java.util.ListIterator<T>
listIterator()
java.util.ListIterator<T>
listIterator(int index)
T
remove(int index)
T
set(int index, T element)
java.util.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
-
-
-
-
Method Detail
-
addAll
public boolean addAll(int index, java.util.Collection<? extends T> c)
- Specified by:
addAll
in interfacejava.util.List<T>
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOf
in interfacejava.util.List<T>
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOf
in interfacejava.util.List<T>
-
listIterator
public java.util.ListIterator<T> listIterator()
- Specified by:
listIterator
in interfacejava.util.List<T>
-
listIterator
public java.util.ListIterator<T> listIterator(int index)
- Specified by:
listIterator
in interfacejava.util.List<T>
-
subList
public java.util.List<T> subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfacejava.util.List<T>
-
getDelegate
protected java.util.Collection<T> getDelegate()
- Specified by:
getDelegate
in classIterator2Collection<T>
-
-