public class IteratorUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> CloseableIterator<T> |
emptyCloseableIterator() |
static <T> CloseableIterator<T> |
filter(java.util.Iterator<T> unfiltered,
com.google.common.base.Predicate<? super T> predicate) |
static void |
loopOverAllElementsOf(java.util.Iterator<?> i) |
static <T> CloseableIterator<T> |
toCloseableIterator(java.util.Iterator<T> original) |
static <T> CloseableIterator<T> |
toCloseableIterator(java.util.Iterator<T> original,
java.lang.AutoCloseable toClose) |
static <T> CloseableIterator<T> |
toCloseableIterator(T... items) |
public static void loopOverAllElementsOf(@Nullable
java.util.Iterator<?> i)
@Nonnull public static <T> CloseableIterator<T> emptyCloseableIterator()
@Nonnull public static <T> CloseableIterator<T> toCloseableIterator(@Nonnull java.util.Iterator<T> original)
@Nonnull public static <T> CloseableIterator<T> toCloseableIterator(@Nonnull java.util.Iterator<T> original, @Nullable java.lang.AutoCloseable toClose)
@SafeVarargs @Nonnull public static <T> CloseableIterator<T> toCloseableIterator(T... items)
@Nonnull public static <T> CloseableIterator<T> filter(@Nonnull java.util.Iterator<T> unfiltered, @Nonnull com.google.common.base.Predicate<? super T> predicate)
Copyright © 2013 echocat. All Rights Reserved.