com.ibm.wala.util.collections
Class Iterator2Iterable<T>

java.lang.Object
  extended by com.ibm.wala.util.collections.Iterator2Iterable<T>
All Implemented Interfaces:
java.lang.Iterable<T>

public class Iterator2Iterable<T>
extends java.lang.Object
implements java.lang.Iterable<T>

Converts an Iterator to an Iterable.


Constructor Summary
Iterator2Iterable(java.util.Iterator<T> iter)
           
 
Method Summary
 java.util.Iterator<T> iterator()
           
static
<T> Iterator2Iterable<T>
make(java.util.Iterator<T> iter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Iterator2Iterable

public Iterator2Iterable(java.util.Iterator<T> iter)
Method Detail

make

public static <T> Iterator2Iterable<T> make(java.util.Iterator<T> iter)

iterator

public java.util.Iterator<T> iterator()
Specified by:
iterator in interface java.lang.Iterable<T>