Class Iterator2Collection<T>

java.lang.Object
com.ibm.wala.util.collections.Iterator2Collection<T>
All Implemented Interfaces:
Iterable<T>, Collection<T>
Direct Known Subclasses:
Iterator2List, Iterator2Set

public abstract class Iterator2Collection<T> extends Object implements Collection<T>
Converts an Iterator to a Collection. Note that if you just want to use Java 5's for-each loop with an Iterator, use Iterator2Iterable.
See Also: