Package org.fcrepo.kernel.api.utils
Class WrappingStream<T>
java.lang.Object
org.fcrepo.kernel.api.utils.WrappingStream<T>
- All Implemented Interfaces:
AutoCloseable,BaseStream<T,,Stream<T>> Stream<T>
- Direct Known Subclasses:
DefaultRdfStream
Partial Implementation of a Wrapping Stream
- Since:
- Dec 6, 2015
- Author:
- acoburn
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.stream.Stream
Stream.Builder<T> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidclose()<R> Rcollect(Supplier<R> supplier, BiConsumer<R, ? super T> accumulator, BiConsumer<R, R> combiner) <R,A> R longcount()findAny()<R> Stream<R> flatMapToDouble(Function<? super T, ? extends DoubleStream> mapper) flatMapToInt(Function<? super T, ? extends IntStream> mapper) flatMapToLong(Function<? super T, ? extends LongStream> mapper) voidvoidforEachOrdered(Consumer<? super T> action) booleaniterator()<R> Stream<R> mapToDouble(ToDoubleFunction<? super T> mapper) mapToInt(ToIntFunction<? super T> mapper) mapToLong(ToLongFunction<? super T> mapper) max(Comparator<? super T> comparator) min(Comparator<? super T> comparator) booleanreduce(BinaryOperator<T> accumulator) reduce(T identity, BinaryOperator<T> accumulator) <U> Ureduce(U identity, BiFunction<U, ? super T, U> accumulator, BinaryOperator<U> combiner) Object[]toArray()<A> A[]toArray(IntFunction<A[]> generator) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.stream.BaseStream
onClose, parallel, sequential, unorderedMethods inherited from interface java.util.stream.Stream
distinct, dropWhile, filter, limit, mapMulti, mapMultiToDouble, mapMultiToInt, mapMultiToLong, peek, skip, sorted, sorted, takeWhile, toList
-
Field Details
-
stream
-
-
Constructor Details
-
WrappingStream
public WrappingStream()
-
-
Method Details
-
allMatch
-
anyMatch
-
collect
-
collect
public <R> R collect(Supplier<R> supplier, BiConsumer<R, ? super T> accumulator, BiConsumer<R, R> combiner) -
count
-
findAny
-
findFirst
-
flatMap
-
flatMapToDouble
- Specified by:
flatMapToDoublein interfaceStream<T>
-
flatMapToInt
- Specified by:
flatMapToIntin interfaceStream<T>
-
flatMapToLong
- Specified by:
flatMapToLongin interfaceStream<T>
-
forEach
-
forEachOrdered
- Specified by:
forEachOrderedin interfaceStream<T>
-
map
-
mapToDouble
- Specified by:
mapToDoublein interfaceStream<T>
-
mapToInt
-
mapToLong
-
max
-
min
-
noneMatch
-
reduce
-
reduce
-
reduce
-
toArray
-
toArray
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceBaseStream<T,Stream<T>>
-
isParallel
- Specified by:
isParallelin interfaceBaseStream<T,Stream<T>>
-
iterator
- Specified by:
iteratorin interfaceBaseStream<T,Stream<T>>
-
spliterator
- Specified by:
spliteratorin interfaceBaseStream<T,Stream<T>>
-