Class IteratorUtils
java.lang.Object
net.thevpc.common.iterators.IteratorUtils
- Author:
- thevpc
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Iterator<T> static <T> Iterator<T> coalesceIterators(Iterator<T> a, Iterator<T> b) static <T> Iterator<T> static <T> Iterator<T> concatIterators(Iterator<T> a, Iterator<T> b) static <F,T> Iterator <T> static <F,T> Iterator <T> convertNonNull(Iterator<F> from, Function<F, T> converter, String name) static <F,T> Iterator <F> static <T> Iterator<T> static FileDepthFirstIteratorstatic <T> Iterator<T> static <T> Iterator<T> static <T> Iterator<T> flatten(Iterator<Collection<T>> from) static <T> booleanisNullOrEmpty(Iterator<T> t) static <T> Iterator<T> static <T> Iterator<T> static <T> Iterator<T> nullifyIfEmpty(Iterator<T> other) static <T> Iterator<T> static <T> Iterator<T> safe(IteratorErrorHandlerType type, Iterator<T> t) static <T> Iterator<T> safeIgnore(Iterator<T> t) static <T> Iterator<T> safePospone(Iterator<T> t) static <T> Iterator<T> sort(Iterator<T> it, Comparator<T> c, boolean removeDuplicates) static <T> Iterator<T> static <T> Iterator<T> static <T> List<T> static <T> Set<T> static <T> Set<T> toTreeSet(Iterator<T> it, Comparator<T> c)
-
Field Details
-
NON_NULL
-
NON_BLANK
-
-
Constructor Details
-
IteratorUtils
public IteratorUtils()
-
-
Method Details
-
dsf
-
safe
-
safeIgnore
-
safePospone
-
isNullOrEmpty
-
emptyIterator
-
nonNull
-
concat
-
coalesce
-
filter
-
name
-
flatten
-
supplier
-
supplier
-
onFinish
-
convert
-
convertNonNull
-
toList
-
toSet
-
toTreeSet
-
sort
-
distinct
-
distinct
-
concatIterators
-
coalesceIterators
-
nullifyIfEmpty
-