Class IteratorUtils
java.lang.Object
org.apache.tinkerpop.gremlin.util.iterator.IteratorUtils
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> booleanstatic <T> booleanstatic IteratorasIterator(Object o) static Liststatic Setstatic <S,E> Iterator<E> static <K,S> Map<K, S> collectMap(Iterator<S> iterator, Function<S, K> key) static <K,S, V> Map<K, V> collectMap(Iterator<S> iterator, Function<S, K> key, Function<S, V> value) static <S> Iterator<S>static <S> Iterable<S>static <S> Iterator<S>static final longstatic longstatic <S extends Collection<T>,T>
Sstatic <S> Iterable<S>static <S> Iterator<S>static <T> Optional<T>static <S,E> Iterator<E> static voidstatic <S> Iterator<S>static <S> List<S>static <S> List<S>list(Iterator<S> iterator, Comparator comparator) static <S,E> Iterable<E> static <S,E> Iterator<E> static <T> booleanstatic <T> Iterator<T>static <S> Iterator<S>of(S a) static <S> Iterator<S>of(S a, S b) static <S> Iterable<S>static <S> Iterator<S>static <S,E> E reduce(Iterable<S> iterable, E identity, BiFunction<E, S, E> accumulator) static <S> Sreduce(Iterable<S> iterable, S identity, BinaryOperator<S> accumulator) static <S,E> E reduce(Iterator<S> iterator, E identity, BiFunction<E, S, E> accumulator) static <S> Sreduce(Iterator<S> iterator, S identity, BinaryOperator<S> accumulator) static <T> Iterator<T>removeOnNext(Iterator<T> iterator) static <S> Set<S>static <T> Stream<T>static <T> Stream<T>
-
Method Details
-
of
-
of
-
fill
-
iterate
-
count
-
count
-
list
-
list
-
set
-
limit
-
allMatch
-
anyMatch
-
noneMatch
-
findFirst
-
collectMap
-
collectMap
-
groupBy
-
reduce
-
reduce
-
reduce
-
reduce
-
consume
-
consume
-
map
-
map
-
cast
-
peek
-
peek
-
filter
-
filter
-
flatMap
-
concat
-
asIterator
-
asList
-
asSet
-
stream
-
stream
-
noRemove
-
removeOnNext
-