com.ibm.wala.util.collections
Class IteratorUtil

java.lang.Object
  extended by com.ibm.wala.util.collections.IteratorUtil

public class IteratorUtil
extends java.lang.Object

utilities dealing with Iterators


Constructor Summary
IteratorUtil()
           
 
Method Summary
static
<T> boolean
contains(java.util.Iterator<? extends T> it, T o)
           
static
<T> int
count(java.util.Iterator<T> it)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorUtil

public IteratorUtil()
Method Detail

contains

public static <T> boolean contains(java.util.Iterator<? extends T> it,
                                   T o)
Parameters:
it -
o -
Returns:
true iff the Iterator returns some elements which equals() the object o

count

public static final <T> int count(java.util.Iterator<T> it)