public class IteratorUtils extends Object
| Constructor and Description |
|---|
IteratorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> net.thevpc.nuts.NutsIterator<T> |
coalesce(List<net.thevpc.nuts.NutsIterator<? extends T>> all) |
static <T> net.thevpc.nuts.NutsIterator<T> |
coalesce(net.thevpc.nuts.NutsIterator<? extends T>... all) |
static <T> net.thevpc.nuts.NutsIterator<T> |
coalesce2(List<net.thevpc.nuts.NutsIterator<T>> all) |
static <T> CollectorIterator<T> |
collector(Iterator<T> it) |
static <T> net.thevpc.nuts.NutsIterator<T> |
concat(List<net.thevpc.nuts.NutsIterator<? extends T>> all) |
static <T> net.thevpc.nuts.NutsIterator<T> |
concat(net.thevpc.nuts.NutsIterator<? extends T>... all) |
static <T> net.thevpc.nuts.NutsIterator<T> |
concatLists(List<net.thevpc.nuts.NutsIterator<? extends T>>... all) |
static <F,T> net.thevpc.nuts.NutsIterator<T> |
convertNonNull(net.thevpc.nuts.NutsIterator<F> from,
Function<F,T> converter,
String name) |
static <F,T> net.thevpc.nuts.NutsIterator<F> |
distinct(net.thevpc.nuts.NutsIterator<F> it,
Function<F,T> converter) |
static <T> net.thevpc.nuts.NutsIterator<T> |
distinct(net.thevpc.nuts.NutsIterator<T> it) |
static <T> boolean |
isNullOrEmpty(Iterator<T> t) |
static <T> net.thevpc.nuts.NutsIterator<T> |
nonNull(net.thevpc.nuts.NutsIterator<T> t) |
static <T> net.thevpc.nuts.NutsIterator<T> |
nullifyIfEmpty(net.thevpc.nuts.NutsIterator<T> other) |
static <T> net.thevpc.nuts.NutsIterator<T> |
safe(IteratorErrorHandlerType type,
net.thevpc.nuts.NutsIterator<T> t,
net.thevpc.nuts.NutsSession session) |
static <T> net.thevpc.nuts.NutsIterator<T> |
safeIgnore(net.thevpc.nuts.NutsIterator<T> t,
net.thevpc.nuts.NutsSession session) |
static <T> net.thevpc.nuts.NutsIterator<T> |
safePospone(net.thevpc.nuts.NutsIterator<T> t,
net.thevpc.nuts.NutsSession session) |
static <T> net.thevpc.nuts.NutsIterator<T> |
sort(net.thevpc.nuts.NutsIterator<T> it,
net.thevpc.nuts.NutsComparator<T> c,
boolean removeDuplicates) |
static <T> List<T> |
toList(Iterator<T> it) |
static <T> Set<T> |
toSet(net.thevpc.nuts.NutsIterator<T> it) |
static <T> Set<T> |
toTreeSet(net.thevpc.nuts.NutsIterator<T> it,
net.thevpc.nuts.NutsComparator<T> c) |
public static <T> net.thevpc.nuts.NutsIterator<T> safe(IteratorErrorHandlerType type, net.thevpc.nuts.NutsIterator<T> t, net.thevpc.nuts.NutsSession session)
public static <T> net.thevpc.nuts.NutsIterator<T> safeIgnore(net.thevpc.nuts.NutsIterator<T> t,
net.thevpc.nuts.NutsSession session)
public static <T> net.thevpc.nuts.NutsIterator<T> safePospone(net.thevpc.nuts.NutsIterator<T> t,
net.thevpc.nuts.NutsSession session)
public static <T> boolean isNullOrEmpty(Iterator<T> t)
public static <T> net.thevpc.nuts.NutsIterator<T> nonNull(net.thevpc.nuts.NutsIterator<T> t)
public static <T> net.thevpc.nuts.NutsIterator<T> concat(List<net.thevpc.nuts.NutsIterator<? extends T>> all)
public static <T> net.thevpc.nuts.NutsIterator<T> coalesce2(List<net.thevpc.nuts.NutsIterator<T>> all)
public static <T> net.thevpc.nuts.NutsIterator<T> coalesce(net.thevpc.nuts.NutsIterator<? extends T>... all)
public static <T> net.thevpc.nuts.NutsIterator<T> concat(net.thevpc.nuts.NutsIterator<? extends T>... all)
public static <T> net.thevpc.nuts.NutsIterator<T> concatLists(List<net.thevpc.nuts.NutsIterator<? extends T>>... all)
public static <T> net.thevpc.nuts.NutsIterator<T> coalesce(List<net.thevpc.nuts.NutsIterator<? extends T>> all)
public static <F,T> net.thevpc.nuts.NutsIterator<T> convertNonNull(net.thevpc.nuts.NutsIterator<F> from,
Function<F,T> converter,
String name)
public static <T> Set<T> toSet(net.thevpc.nuts.NutsIterator<T> it)
public static <T> Set<T> toTreeSet(net.thevpc.nuts.NutsIterator<T> it, net.thevpc.nuts.NutsComparator<T> c)
public static <T> net.thevpc.nuts.NutsIterator<T> sort(net.thevpc.nuts.NutsIterator<T> it,
net.thevpc.nuts.NutsComparator<T> c,
boolean removeDuplicates)
public static <T> net.thevpc.nuts.NutsIterator<T> distinct(net.thevpc.nuts.NutsIterator<T> it)
public static <F,T> net.thevpc.nuts.NutsIterator<F> distinct(net.thevpc.nuts.NutsIterator<F> it,
Function<F,T> converter)
public static <T> CollectorIterator<T> collector(Iterator<T> it)
public static <T> net.thevpc.nuts.NutsIterator<T> nullifyIfEmpty(net.thevpc.nuts.NutsIterator<T> other)
Copyright © 2022 vpc open source initiative. All rights reserved.