Class AutoCloseLongStream
java.lang.Object
com.apptasticsoftware.rssreader.internal.stream.AbstractAutoCloseStream<Long,LongStream>
com.apptasticsoftware.rssreader.internal.stream.AutoCloseLongStream
- All Implemented Interfaces:
AutoCloseable
,BaseStream<Long,
,LongStream> LongStream
public class AutoCloseLongStream
extends AbstractAutoCloseStream<Long,LongStream>
implements LongStream
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.stream.LongStream
LongStream.Builder, LongStream.LongMapMultiConsumer
-
Method Summary
Modifier and TypeMethodDescriptionboolean
allMatch
(LongPredicate predicate) boolean
anyMatch
(LongPredicate predicate) average()
boxed()
<R> R
collect
(Supplier<R> supplier, ObjLongConsumer<R> accumulator, BiConsumer<R, R> combiner) long
count()
distinct()
filter
(LongPredicate predicate) findAny()
flatMap
(LongFunction<? extends LongStream> mapper) void
forEach
(LongConsumer action) void
forEachOrdered
(LongConsumer action) boolean
iterator()
limit
(long maxSize) map
(LongUnaryOperator mapper) mapToDouble
(LongToDoubleFunction mapper) mapToInt
(LongToIntFunction mapper) <U> Stream
<U> mapToObj
(LongFunction<? extends U> mapper) max()
min()
boolean
noneMatch
(LongPredicate predicate) parallel()
peek
(LongConsumer action) long
reduce
(long identity, LongBinaryOperator op) skip
(long n) sorted()
long
sum()
long[]
toArray()
Methods inherited from class com.apptasticsoftware.rssreader.internal.stream.AbstractAutoCloseStream
close, stream
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.stream.BaseStream
close
Methods inherited from interface java.util.stream.LongStream
dropWhile, mapMulti, takeWhile
-
Method Details
-
filter
- Specified by:
filter
in interfaceLongStream
-
map
- Specified by:
map
in interfaceLongStream
-
mapToObj
- Specified by:
mapToObj
in interfaceLongStream
-
mapToInt
- Specified by:
mapToInt
in interfaceLongStream
-
mapToDouble
- Specified by:
mapToDouble
in interfaceLongStream
-
flatMap
- Specified by:
flatMap
in interfaceLongStream
-
distinct
- Specified by:
distinct
in interfaceLongStream
-
sorted
- Specified by:
sorted
in interfaceLongStream
-
peek
- Specified by:
peek
in interfaceLongStream
-
limit
- Specified by:
limit
in interfaceLongStream
-
skip
- Specified by:
skip
in interfaceLongStream
-
forEach
- Specified by:
forEach
in interfaceLongStream
-
forEachOrdered
- Specified by:
forEachOrdered
in interfaceLongStream
-
toArray
public long[] toArray()- Specified by:
toArray
in interfaceLongStream
-
reduce
- Specified by:
reduce
in interfaceLongStream
-
reduce
- Specified by:
reduce
in interfaceLongStream
-
collect
public <R> R collect(Supplier<R> supplier, ObjLongConsumer<R> accumulator, BiConsumer<R, R> combiner) - Specified by:
collect
in interfaceLongStream
-
sum
public long sum()- Specified by:
sum
in interfaceLongStream
-
min
- Specified by:
min
in interfaceLongStream
-
max
- Specified by:
max
in interfaceLongStream
-
count
public long count()- Specified by:
count
in interfaceLongStream
-
average
- Specified by:
average
in interfaceLongStream
-
summaryStatistics
- Specified by:
summaryStatistics
in interfaceLongStream
-
anyMatch
- Specified by:
anyMatch
in interfaceLongStream
-
allMatch
- Specified by:
allMatch
in interfaceLongStream
-
noneMatch
- Specified by:
noneMatch
in interfaceLongStream
-
findFirst
- Specified by:
findFirst
in interfaceLongStream
-
findAny
- Specified by:
findAny
in interfaceLongStream
-
asDoubleStream
- Specified by:
asDoubleStream
in interfaceLongStream
-
boxed
- Specified by:
boxed
in interfaceLongStream
-
sequential
- Specified by:
sequential
in interfaceBaseStream<Long,
LongStream> - Specified by:
sequential
in interfaceLongStream
-
parallel
- Specified by:
parallel
in interfaceBaseStream<Long,
LongStream> - Specified by:
parallel
in interfaceLongStream
-
iterator
- Specified by:
iterator
in interfaceBaseStream<Long,
LongStream> - Specified by:
iterator
in interfaceLongStream
-
spliterator
- Specified by:
spliterator
in interfaceBaseStream<Long,
LongStream> - Specified by:
spliterator
in interfaceLongStream
-
isParallel
public boolean isParallel()- Specified by:
isParallel
in interfaceBaseStream<Long,
LongStream>
-
unordered
- Specified by:
unordered
in interfaceBaseStream<Long,
LongStream>
-
onClose
- Specified by:
onClose
in interfaceBaseStream<Long,
LongStream>
-