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 voidadd(int index, T element)booleanaddAll(int index, java.util.Collection<? extends T> c)Tget(int index)protected java.util.Collection<T>getDelegate()intindexOf(java.lang.Object o)intlastIndexOf(java.lang.Object o)java.util.ListIterator<T>listIterator()java.util.ListIterator<T>listIterator(int index)Tremove(int index)Tset(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:
addAllin interfacejava.util.List<T>
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOfin interfacejava.util.List<T>
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOfin interfacejava.util.List<T>
-
listIterator
public java.util.ListIterator<T> listIterator()
- Specified by:
listIteratorin interfacejava.util.List<T>
-
listIterator
public java.util.ListIterator<T> listIterator(int index)
- Specified by:
listIteratorin interfacejava.util.List<T>
-
subList
public java.util.List<T> subList(int fromIndex, int toIndex)
- Specified by:
subListin interfacejava.util.List<T>
-
getDelegate
protected java.util.Collection<T> getDelegate()
- Specified by:
getDelegatein classIterator2Collection<T>
-
-