public class IteratorUtil extends Object
Constructor and Description |
---|
IteratorUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> boolean |
contains(Iterator<? extends T> it,
T o) |
static <T> int |
count(Iterator<T> it) |
static <T,S extends T> |
filter(Iterator<T> iterator,
Class<S> cls) |
public static <T> boolean contains(Iterator<? extends T> it, T o)
public static final <T> int count(Iterator<T> it) throws IllegalArgumentException
IllegalArgumentException