java.util.stream
21 classes of the module java.base.
Load them with:
using {
"java.util.stream"
}
BaseStream Collector CollectorCharacteristics Collectors DoubleStream DoubleStreamBuilder DoubleStreamDoubleMapMultiConsumer Gatherer GathererDownstream GathererIntegrator GathererIntegratorGreedy Gatherers IntStream IntStreamBuilder IntStreamIntMapMultiConsumer LongStream LongStreamBuilder LongStreamLongMapMultiConsumer Stream StreamBuilder StreamSupport
BaseStream#
interface · java.util.stream.BaseStream
Extends: AutoCloseable
Methods
| Method | Ring call | Java overloads |
|---|---|---|
close | close() | void close() |
isParallel | isParallel() | boolean isParallel() |
iterator | iterator() | Iterator iterator() |
onClose | onClose(closeHandler) | BaseStream onClose(Runnable closeHandler) |
parallel | parallel() | BaseStream parallel() |
sequential | sequential() | BaseStream sequential() |
spliterator | spliterator() | Spliterator spliterator() |
unordered | unordered() | BaseStream unordered() |
Collector#
interface · java.util.stream.Collector
Methods
| Method | Ring call | Java overloads |
|---|---|---|
accumulator | accumulator() | BiConsumer accumulator() |
characteristics | characteristics() | Set characteristics() |
combiner | combiner() | BinaryOperator combiner() |
finisher | finisher() | Function finisher() |
of | of([supplier,accumulator,combiner,characteristics])of([ :supplier = v, :accumulator = v, :combiner = v, :characteristics = v ])of([supplier,accumulator,combiner,finisher,characteristics])of([ :supplier = v, :accumulator = v, :combiner = v, :finisher = v, :characteristics = v ]) | static Collector of(Supplier supplier, BiConsumer accumulator, BinaryOperator combiner, Characteristics[] characteristics)static Collector of(Supplier supplier, BiConsumer accumulator, BinaryOperator combiner, Function finisher, Characteristics[] characteristics) |
supplier | supplier() | Supplier supplier() |
CollectorCharacteristics#
enum · extends Enum · java.util.stream.Collector$Characteristics
Fields
| Name | Type | Access | In Ring |
|---|---|---|---|
CONCURRENT | Characteristics | constant · static | o.CONCURRENT |
UNORDERED | Characteristics | constant · static | o.UNORDERED |
IDENTITY_FINISH | Characteristics | constant · static | o.IDENTITY_FINISH |
Methods
| Method | Ring call | Java overloads |
|---|---|---|
valueOf | valueOf(p1)valueOf([enumClass,name])valueOf([ :enumClass = v, :name = v ]) | static Characteristics valueOf(String p1)static Enum valueOf(Class enumClass, String name) |
values | values() | static Characteristics[] values() |
The methods and fields of Enum are inherited.
Collectors#
class final · extends Object · java.util.stream.Collectors
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@joining | @joining(delimiter)@joining([delimiter,prefix,suffix])@joining([ :delimiter = v, :prefix = v, :suffix = v ]) | static Collector joining(CharSequence delimiter)static Collector joining(CharSequence delimiter, CharSequence prefix, CharSequence suffix) |
@toList | @toList() | static Collector toList() |
averagingDouble | averagingDouble(mapper) | static Collector averagingDouble(ToDoubleFunction mapper) |
averagingInt | averagingInt(mapper) | static Collector averagingInt(ToIntFunction mapper) |
averagingLong | averagingLong(mapper) | static Collector averagingLong(ToLongFunction mapper) |
collectingAndThen | collectingAndThen(downstream,finisher) | static Collector collectingAndThen(Collector downstream, Function finisher) |
counting | counting() | static Collector counting() |
filtering | filtering(predicate,downstream) | static Collector filtering(Predicate predicate, Collector downstream) |
flatMapping | flatMapping(mapper,downstream) | static Collector flatMapping(Function mapper, Collector downstream) |
groupingBy | groupingBy(classifier)groupingBy([classifier,downstream])groupingBy([ :classifier = v, :downstream = v ])groupingBy([classifier,mapFactory,downstream])groupingBy([ :classifier = v, :mapFactory = v, :downstream = v ]) | static Collector groupingBy(Function classifier)static Collector groupingBy(Function classifier, Collector downstream)static Collector groupingBy(Function classifier, Supplier mapFactory, Collector downstream) |
groupingByConcurrent | groupingByConcurrent(classifier)groupingByConcurrent([classifier,downstream])groupingByConcurrent([ :classifier = v, :downstream = v ])groupingByConcurrent([classifier,mapFactory,downstream])groupingByConcurrent([ :classifier = v, :mapFactory = v, :downstream = v ]) | static Collector groupingByConcurrent(Function classifier)static Collector groupingByConcurrent(Function classifier, Collector downstream)static Collector groupingByConcurrent(Function classifier, Supplier mapFactory, Collector downstream) |
joining | joining() | static Collector joining() |
mapping | mapping(mapper,downstream) | static Collector mapping(Function mapper, Collector downstream) |
maxBy | maxBy(comparator) | static Collector maxBy(Comparator comparator) |
minBy | minBy(comparator) | static Collector minBy(Comparator comparator) |
partitioningBy | partitioningBy(predicate)partitioningBy([predicate,downstream])partitioningBy([ :predicate = v, :downstream = v ]) | static Collector partitioningBy(Predicate predicate)static Collector partitioningBy(Predicate predicate, Collector downstream) |
reducing | reducing(op)reducing([identity,op])reducing([ :identity = v, :op = v ])reducing([identity,mapper,op])reducing([ :identity = v, :mapper = v, :op = v ]) | static Collector reducing(BinaryOperator op)static Collector reducing(Object identity, BinaryOperator op)static Collector reducing(Object identity, Function mapper, BinaryOperator op) |
summarizingDouble | summarizingDouble(mapper) | static Collector summarizingDouble(ToDoubleFunction mapper) |
summarizingInt | summarizingInt(mapper) | static Collector summarizingInt(ToIntFunction mapper) |
summarizingLong | summarizingLong(mapper) | static Collector summarizingLong(ToLongFunction mapper) |
summingDouble | summingDouble(mapper) | static Collector summingDouble(ToDoubleFunction mapper) |
summingInt | summingInt(mapper) | static Collector summingInt(ToIntFunction mapper) |
summingLong | summingLong(mapper) | static Collector summingLong(ToLongFunction mapper) |
teeing | teeing(downstream1,downstream2,merger) | static Collector teeing(Collector downstream1, Collector downstream2, BiFunction merger) |
toCollection | toCollection(collectionFactory) | static Collector toCollection(Supplier collectionFactory) |
toConcurrentMap | toConcurrentMap([keyMapper,valueMapper])toConcurrentMap([ :keyMapper = v, :valueMapper = v ])toConcurrentMap([keyMapper,valueMapper,mergeFunction])toConcurrentMap([ :keyMapper = v, :valueMapper = v, :mergeFunction = v ])toConcurrentMap([keyMapper,valueMapper,mergeFunction,mapFactory])toConcurrentMap([ :keyMapper = v, :valueMapper = v, :mergeFunction = v, :mapFactory = v ]) | static Collector toConcurrentMap(Function keyMapper, Function valueMapper)static Collector toConcurrentMap(Function keyMapper, Function valueMapper, BinaryOperator mergeFunction)static Collector toConcurrentMap(Function keyMapper, Function valueMapper, BinaryOperator mergeFunction, Supplier mapFactory) |
toMap | toMap([keyMapper,valueMapper])toMap([ :keyMapper = v, :valueMapper = v ])toMap([keyMapper,valueMapper,mergeFunction])toMap([ :keyMapper = v, :valueMapper = v, :mergeFunction = v ])toMap([keyMapper,valueMapper,mergeFunction,mapFactory])toMap([ :keyMapper = v, :valueMapper = v, :mergeFunction = v, :mapFactory = v ]) | static Collector toMap(Function keyMapper, Function valueMapper)static Collector toMap(Function keyMapper, Function valueMapper, BinaryOperator mergeFunction)static Collector toMap(Function keyMapper, Function valueMapper, BinaryOperator mergeFunction, Supplier mapFactory) |
toSet | toSet() | static Collector toSet() |
toUnmodifiableList | toUnmodifiableList() | static Collector toUnmodifiableList() |
toUnmodifiableMap | toUnmodifiableMap([keyMapper,valueMapper])toUnmodifiableMap([ :keyMapper = v, :valueMapper = v ])toUnmodifiableMap([keyMapper,valueMapper,mergeFunction])toUnmodifiableMap([ :keyMapper = v, :valueMapper = v, :mergeFunction = v ]) | static Collector toUnmodifiableMap(Function keyMapper, Function valueMapper)static Collector toUnmodifiableMap(Function keyMapper, Function valueMapper, BinaryOperator mergeFunction) |
toUnmodifiableSet | toUnmodifiableSet() | static Collector toUnmodifiableSet() |
The methods and fields of Object are inherited.
DoubleStream#
interface · java.util.stream.DoubleStream
Extends: BaseStream
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@forEach | @forEach(action) | void forEach(DoubleConsumer action) |
allMatch | allMatch(predicate) | boolean allMatch(DoublePredicate predicate) |
anyMatch | anyMatch(predicate) | boolean anyMatch(DoublePredicate predicate) |
average | average() | OptionalDouble average() |
boxed | boxed() | Stream boxed() |
builder | builder() | static Builder builder() |
close | close() | void close() |
collect | collect(supplier,accumulator,combiner) | Object collect(Supplier supplier, ObjDoubleConsumer accumulator, BiConsumer combiner) |
concat | concat(a,b) | static DoubleStream concat(DoubleStream a, DoubleStream b) |
count | count() | long count() |
distinct | distinct() | DoubleStream distinct() |
dropWhile | dropWhile(predicate) | DoubleStream dropWhile(DoublePredicate predicate) |
empty | empty() | static DoubleStream empty() |
filter | filter(predicate) | DoubleStream filter(DoublePredicate predicate) |
findAny | findAny() | OptionalDouble findAny() |
findFirst | findFirst() | OptionalDouble findFirst() |
flatMap | flatMap(mapper) | DoubleStream flatMap(DoubleFunction mapper) |
forEachOrdered | forEachOrdered(action) | void forEachOrdered(DoubleConsumer action) |
generate | generate(s) | static DoubleStream generate(DoubleSupplier s) |
isParallel | isParallel() | boolean isParallel() |
iterate | iterate([seed,f])iterate([ :seed = v, :f = v ])iterate([seed,hasNext,next])iterate([ :seed = v, :hasNext = v, :next = v ]) | static DoubleStream iterate(double seed, DoubleUnaryOperator f)static DoubleStream iterate(double seed, DoublePredicate hasNext, DoubleUnaryOperator next) |
iterator | iterator() | OfDouble iterator() |
limit | limit(maxSize) | DoubleStream limit(long maxSize) |
map | map(mapper) | DoubleStream map(DoubleUnaryOperator mapper) |
mapMulti | mapMulti(mapper) | DoubleStream mapMulti(DoubleMapMultiConsumer mapper) |
mapToInt | mapToInt(mapper) | IntStream mapToInt(DoubleToIntFunction mapper) |
mapToLong | mapToLong(mapper) | LongStream mapToLong(DoubleToLongFunction mapper) |
mapToObj | mapToObj(mapper) | Stream mapToObj(DoubleFunction mapper) |
max | max() | OptionalDouble max() |
min | min() | OptionalDouble min() |
noneMatch | noneMatch(predicate) | boolean noneMatch(DoublePredicate predicate) |
of | of(t) | static DoubleStream of(double t)static DoubleStream of(double[] values) |
onClose | onClose(closeHandler) | BaseStream onClose(Runnable closeHandler) |
parallel | parallel() | DoubleStream parallel() |
peek | peek(action) | DoubleStream peek(DoubleConsumer action) |
reduce | reduce(op)reduce([identity,op])reduce([ :identity = v, :op = v ]) | OptionalDouble reduce(DoubleBinaryOperator op)double reduce(double identity, DoubleBinaryOperator op) |
sequential | sequential() | DoubleStream sequential() |
skip | skip(n) | DoubleStream skip(long n) |
sorted | sorted() | DoubleStream sorted() |
spliterator | spliterator() | OfDouble spliterator() |
sum | sum() | double sum() |
summaryStatistics | summaryStatistics() | DoubleSummaryStatistics summaryStatistics() |
takeWhile | takeWhile(predicate) | DoubleStream takeWhile(DoublePredicate predicate) |
toArray | toArray() | double[] toArray() |
unordered | unordered() | BaseStream unordered() |
DoubleStreamBuilder#
interface · java.util.stream.DoubleStream$Builder
Extends: DoubleConsumer
Methods
| Method | Ring call | Java overloads |
|---|---|---|
accept | accept(t) | void accept(double t) |
add | add(t) | Builder add(double t) |
andThen | andThen(after) | DoubleConsumer andThen(DoubleConsumer after) |
build | build() | DoubleStream build() |
DoubleStreamDoubleMapMultiConsumer#
interface · java.util.stream.DoubleStream$DoubleMapMultiConsumer
Methods
| Method | Ring call | Java overloads |
|---|---|---|
accept | accept(value,dc) | void accept(double value, DoubleConsumer dc) |
Gatherer#
interface · java.util.stream.Gatherer
Methods
| Method | Ring call | Java overloads |
|---|---|---|
andThen | andThen(that) | Gatherer andThen(Gatherer that) |
combiner | combiner() | BinaryOperator combiner() |
defaultCombiner | defaultCombiner() | static BinaryOperator defaultCombiner() |
defaultFinisher | defaultFinisher() | static BiConsumer defaultFinisher() |
defaultInitializer | defaultInitializer() | static Supplier defaultInitializer() |
finisher | finisher() | BiConsumer finisher() |
initializer | initializer() | Supplier initializer() |
integrator | integrator() | Integrator integrator() |
of | of(integrator)of([integrator,finisher])of([ :integrator = v, :finisher = v ])of([initializer,integrator,combiner,finisher])of([ :initializer = v, :integrator = v, :combiner = v, :finisher = v ]) | static Gatherer of(Integrator integrator)static Gatherer of(Integrator integrator, BiConsumer finisher)static Gatherer of(Supplier initializer, Integrator integrator, BinaryOperator combiner, BiConsumer finisher) |
ofSequential | ofSequential(integrator)ofSequential([integrator,finisher])ofSequential([ :integrator = v, :finisher = v ])ofSequential([initializer,integrator,finisher])ofSequential([ :initializer = v, :integrator = v, :finisher = v ]) | static Gatherer ofSequential(Integrator integrator)static Gatherer ofSequential(Integrator integrator, BiConsumer finisher)static Gatherer ofSequential(Supplier initializer, Integrator integrator)static Gatherer ofSequential(Supplier initializer, Integrator integrator, BiConsumer finisher) |
GathererDownstream#
interface · java.util.stream.Gatherer$Downstream
Methods
| Method | Ring call | Java overloads |
|---|---|---|
isRejecting | isRejecting() | boolean isRejecting() |
push | push(element) | boolean push(Object element) |
GathererIntegrator#
interface · java.util.stream.Gatherer$Integrator
Methods
| Method | Ring call | Java overloads |
|---|---|---|
integrate | integrate(state,element,downstream) | boolean integrate(Object state, Object element, Downstream downstream) |
of | of(integrator) | static Integrator of(Integrator integrator) |
ofGreedy | ofGreedy(greedy) | static Greedy ofGreedy(Greedy greedy) |
GathererIntegratorGreedy#
interface · java.util.stream.Gatherer$Integrator$Greedy
Extends: GathererIntegrator
Methods
| Method | Ring call | Java overloads |
|---|---|---|
integrate | integrate(state,element,downstream) | boolean integrate(Object state, Object element, Downstream downstream) |
Gatherers#
class final · extends Object · java.util.stream.Gatherers
Methods
| Method | Ring call | Java overloads |
|---|---|---|
fold | fold(initial,folder) | static Gatherer fold(Supplier initial, BiFunction folder) |
mapConcurrent | mapConcurrent(maxConcurrency,mapper) | static Gatherer mapConcurrent(int maxConcurrency, Function mapper) |
scan | scan(initial,scanner) | static Gatherer scan(Supplier initial, BiFunction scanner) |
windowFixed | windowFixed(windowSize) | static Gatherer windowFixed(int windowSize) |
windowSliding | windowSliding(windowSize) | static Gatherer windowSliding(int windowSize) |
The methods and fields of Object are inherited.
IntStream#
interface · java.util.stream.IntStream
Extends: BaseStream
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@forEach | @forEach(action) | void forEach(IntConsumer action) |
allMatch | allMatch(predicate) | boolean allMatch(IntPredicate predicate) |
anyMatch | anyMatch(predicate) | boolean anyMatch(IntPredicate predicate) |
asDoubleStream | asDoubleStream() | DoubleStream asDoubleStream() |
asLongStream | asLongStream() | LongStream asLongStream() |
average | average() | OptionalDouble average() |
boxed | boxed() | Stream boxed() |
builder | builder() | static Builder builder() |
close | close() | void close() |
collect | collect(supplier,accumulator,combiner) | Object collect(Supplier supplier, ObjIntConsumer accumulator, BiConsumer combiner) |
concat | concat(a,b) | static IntStream concat(IntStream a, IntStream b) |
count | count() | long count() |
distinct | distinct() | IntStream distinct() |
dropWhile | dropWhile(predicate) | IntStream dropWhile(IntPredicate predicate) |
empty | empty() | static IntStream empty() |
filter | filter(predicate) | IntStream filter(IntPredicate predicate) |
findAny | findAny() | OptionalInt findAny() |
findFirst | findFirst() | OptionalInt findFirst() |
flatMap | flatMap(mapper) | IntStream flatMap(IntFunction mapper) |
forEachOrdered | forEachOrdered(action) | void forEachOrdered(IntConsumer action) |
generate | generate(s) | static IntStream generate(IntSupplier s) |
isParallel | isParallel() | boolean isParallel() |
iterate | iterate([seed,f])iterate([ :seed = v, :f = v ])iterate([seed,hasNext,next])iterate([ :seed = v, :hasNext = v, :next = v ]) | static IntStream iterate(int seed, IntUnaryOperator f)static IntStream iterate(int seed, IntPredicate hasNext, IntUnaryOperator next) |
iterator | iterator() | OfInt iterator() |
limit | limit(maxSize) | IntStream limit(long maxSize) |
map | map(mapper) | IntStream map(IntUnaryOperator mapper) |
mapMulti | mapMulti(mapper) | IntStream mapMulti(IntMapMultiConsumer mapper) |
mapToDouble | mapToDouble(mapper) | DoubleStream mapToDouble(IntToDoubleFunction mapper) |
mapToLong | mapToLong(mapper) | LongStream mapToLong(IntToLongFunction mapper) |
mapToObj | mapToObj(mapper) | Stream mapToObj(IntFunction mapper) |
max | max() | OptionalInt max() |
min | min() | OptionalInt min() |
noneMatch | noneMatch(predicate) | boolean noneMatch(IntPredicate predicate) |
of | of(t) | static IntStream of(int t)static IntStream of(int[] values) |
onClose | onClose(closeHandler) | BaseStream onClose(Runnable closeHandler) |
parallel | parallel() | IntStream parallel() |
peek | peek(action) | IntStream peek(IntConsumer action) |
range | range(startInclusive,endExclusive) | static IntStream range(int startInclusive, int endExclusive) |
rangeClosed | rangeClosed(startInclusive,endInclusive) | static IntStream rangeClosed(int startInclusive, int endInclusive) |
reduce | reduce(op)reduce([identity,op])reduce([ :identity = v, :op = v ]) | OptionalInt reduce(IntBinaryOperator op)int reduce(int identity, IntBinaryOperator op) |
sequential | sequential() | IntStream sequential() |
skip | skip(n) | IntStream skip(long n) |
sorted | sorted() | IntStream sorted() |
spliterator | spliterator() | OfInt spliterator() |
sum | sum() | int sum() |
summaryStatistics | summaryStatistics() | IntSummaryStatistics summaryStatistics() |
takeWhile | takeWhile(predicate) | IntStream takeWhile(IntPredicate predicate) |
toArray | toArray() | int[] toArray() |
unordered | unordered() | BaseStream unordered() |
IntStreamBuilder#
interface · java.util.stream.IntStream$Builder
Extends: IntConsumer
Methods
| Method | Ring call | Java overloads |
|---|---|---|
accept | accept(t) | void accept(int t) |
add | add(t) | Builder add(int t) |
andThen | andThen(after) | IntConsumer andThen(IntConsumer after) |
build | build() | IntStream build() |
IntStreamIntMapMultiConsumer#
interface · java.util.stream.IntStream$IntMapMultiConsumer
Methods
| Method | Ring call | Java overloads |
|---|---|---|
accept | accept(value,ic) | void accept(int value, IntConsumer ic) |
LongStream#
interface · java.util.stream.LongStream
Extends: BaseStream
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@forEach | @forEach(action) | void forEach(LongConsumer action) |
allMatch | allMatch(predicate) | boolean allMatch(LongPredicate predicate) |
anyMatch | anyMatch(predicate) | boolean anyMatch(LongPredicate predicate) |
asDoubleStream | asDoubleStream() | DoubleStream asDoubleStream() |
average | average() | OptionalDouble average() |
boxed | boxed() | Stream boxed() |
builder | builder() | static Builder builder() |
close | close() | void close() |
collect | collect(supplier,accumulator,combiner) | Object collect(Supplier supplier, ObjLongConsumer accumulator, BiConsumer combiner) |
concat | concat(a,b) | static LongStream concat(LongStream a, LongStream b) |
count | count() | long count() |
distinct | distinct() | LongStream distinct() |
dropWhile | dropWhile(predicate) | LongStream dropWhile(LongPredicate predicate) |
empty | empty() | static LongStream empty() |
filter | filter(predicate) | LongStream filter(LongPredicate predicate) |
findAny | findAny() | OptionalLong findAny() |
findFirst | findFirst() | OptionalLong findFirst() |
flatMap | flatMap(mapper) | LongStream flatMap(LongFunction mapper) |
forEachOrdered | forEachOrdered(action) | void forEachOrdered(LongConsumer action) |
generate | generate(s) | static LongStream generate(LongSupplier s) |
isParallel | isParallel() | boolean isParallel() |
iterate | iterate([seed,f])iterate([ :seed = v, :f = v ])iterate([seed,hasNext,next])iterate([ :seed = v, :hasNext = v, :next = v ]) | static LongStream iterate(long seed, LongUnaryOperator f)static LongStream iterate(long seed, LongPredicate hasNext, LongUnaryOperator next) |
iterator | iterator() | OfLong iterator() |
limit | limit(maxSize) | LongStream limit(long maxSize) |
map | map(mapper) | LongStream map(LongUnaryOperator mapper) |
mapMulti | mapMulti(mapper) | LongStream mapMulti(LongMapMultiConsumer mapper) |
mapToDouble | mapToDouble(mapper) | DoubleStream mapToDouble(LongToDoubleFunction mapper) |
mapToInt | mapToInt(mapper) | IntStream mapToInt(LongToIntFunction mapper) |
mapToObj | mapToObj(mapper) | Stream mapToObj(LongFunction mapper) |
max | max() | OptionalLong max() |
min | min() | OptionalLong min() |
noneMatch | noneMatch(predicate) | boolean noneMatch(LongPredicate predicate) |
of | of(t) | static LongStream of(long t)static LongStream of(long[] values) |
onClose | onClose(closeHandler) | BaseStream onClose(Runnable closeHandler) |
parallel | parallel() | LongStream parallel() |
peek | peek(action) | LongStream peek(LongConsumer action) |
range | range(startInclusive,endExclusive) | static LongStream range(long startInclusive, long endExclusive) |
rangeClosed | rangeClosed(startInclusive,endInclusive) | static LongStream rangeClosed(long startInclusive, long endInclusive) |
reduce | reduce(op)reduce([identity,op])reduce([ :identity = v, :op = v ]) | OptionalLong reduce(LongBinaryOperator op)long reduce(long identity, LongBinaryOperator op) |
sequential | sequential() | LongStream sequential() |
skip | skip(n) | LongStream skip(long n) |
sorted | sorted() | LongStream sorted() |
spliterator | spliterator() | OfLong spliterator() |
sum | sum() | long sum() |
summaryStatistics | summaryStatistics() | LongSummaryStatistics summaryStatistics() |
takeWhile | takeWhile(predicate) | LongStream takeWhile(LongPredicate predicate) |
toArray | toArray() | long[] toArray() |
unordered | unordered() | BaseStream unordered() |
LongStreamBuilder#
interface · java.util.stream.LongStream$Builder
Extends: LongConsumer
Methods
| Method | Ring call | Java overloads |
|---|---|---|
accept | accept(t) | void accept(long t) |
add | add(t) | Builder add(long t) |
andThen | andThen(after) | LongConsumer andThen(LongConsumer after) |
build | build() | LongStream build() |
LongStreamLongMapMultiConsumer#
interface · java.util.stream.LongStream$LongMapMultiConsumer
Methods
| Method | Ring call | Java overloads |
|---|---|---|
accept | accept(value,lc) | void accept(long value, LongConsumer lc) |
Stream#
interface · java.util.stream.Stream
Extends: BaseStream
Methods
| Method | Ring call | Java overloads |
|---|---|---|
@forEach | @forEach(action) | void forEach(Consumer action) |
@sorted | @sorted(comparator) | Stream sorted(Comparator comparator) |
@toArray | @toArray(generator) | Object[] toArray(IntFunction generator) |
@toList | @toList() | List toList() |
allMatch | allMatch(predicate) | boolean allMatch(Predicate predicate) |
anyMatch | anyMatch(predicate) | boolean anyMatch(Predicate predicate) |
builder | builder() | static Builder builder() |
close | close() | void close() |
collect | collect(collector)collect([supplier,accumulator,combiner])collect([ :supplier = v, :accumulator = v, :combiner = v ]) | Object collect(Collector collector)Object collect(Supplier supplier, BiConsumer accumulator, BiConsumer combiner) |
concat | concat(a,b) | static Stream concat(Stream a, Stream b) |
count | count() | long count() |
distinct | distinct() | Stream distinct() |
dropWhile | dropWhile(predicate) | Stream dropWhile(Predicate predicate) |
empty | empty() | static Stream empty() |
filter | filter(predicate) | Stream filter(Predicate predicate) |
findAny | findAny() | Optional findAny() |
findFirst | findFirst() | Optional findFirst() |
flatMap | flatMap(mapper) | Stream flatMap(Function mapper) |
flatMapToDouble | flatMapToDouble(mapper) | DoubleStream flatMapToDouble(Function mapper) |
flatMapToInt | flatMapToInt(mapper) | IntStream flatMapToInt(Function mapper) |
flatMapToLong | flatMapToLong(mapper) | LongStream flatMapToLong(Function mapper) |
forEachOrdered | forEachOrdered(action) | void forEachOrdered(Consumer action) |
gather | gather(gatherer) | Stream gather(Gatherer gatherer) |
generate | generate(s) | static Stream generate(Supplier s) |
isParallel | isParallel() | boolean isParallel() |
iterate | iterate([seed,f])iterate([ :seed = v, :f = v ])iterate([seed,hasNext,next])iterate([ :seed = v, :hasNext = v, :next = v ]) | static Stream iterate(Object seed, UnaryOperator f)static Stream iterate(Object seed, Predicate hasNext, UnaryOperator next) |
iterator | iterator() | Iterator iterator() |
limit | limit(maxSize) | Stream limit(long maxSize) |
map | map(mapper) | Stream map(Function mapper) |
mapMulti | mapMulti(mapper) | Stream mapMulti(BiConsumer mapper) |
mapMultiToDouble | mapMultiToDouble(mapper) | DoubleStream mapMultiToDouble(BiConsumer mapper) |
mapMultiToInt | mapMultiToInt(mapper) | IntStream mapMultiToInt(BiConsumer mapper) |
mapMultiToLong | mapMultiToLong(mapper) | LongStream mapMultiToLong(BiConsumer mapper) |
mapToDouble | mapToDouble(mapper) | DoubleStream mapToDouble(ToDoubleFunction mapper) |
mapToInt | mapToInt(mapper) | IntStream mapToInt(ToIntFunction mapper) |
mapToLong | mapToLong(mapper) | LongStream mapToLong(ToLongFunction mapper) |
max | max(comparator) | Optional max(Comparator comparator) |
min | min(comparator) | Optional min(Comparator comparator) |
noneMatch | noneMatch(predicate) | boolean noneMatch(Predicate predicate) |
of | of(t) | static Stream of(Object[] t)static Stream of(Object t) |
ofNullable | ofNullable(t) | static Stream ofNullable(Object t) |
onClose | onClose(closeHandler) | BaseStream onClose(Runnable closeHandler) |
parallel | parallel() | BaseStream parallel() |
peek | peek(action) | Stream peek(Consumer action) |
reduce | reduce(accumulator)reduce([identity,accumulator])reduce([ :identity = v, :accumulator = v ])reduce([identity,accumulator,combiner])reduce([ :identity = v, :accumulator = v, :combiner = v ]) | Optional reduce(BinaryOperator accumulator)Object reduce(Object identity, BinaryOperator accumulator)Object reduce(Object identity, BiFunction accumulator, BinaryOperator combiner) |
sequential | sequential() | BaseStream sequential() |
skip | skip(n) | Stream skip(long n) |
sorted | sorted() | Stream sorted() |
spliterator | spliterator() | Spliterator spliterator() |
takeWhile | takeWhile(predicate) | Stream takeWhile(Predicate predicate) |
toArray | toArray() | Object[] toArray() |
unordered | unordered() | BaseStream unordered() |
StreamBuilder#
interface · java.util.stream.Stream$Builder
Extends: Consumer
Methods
| Method | Ring call | Java overloads |
|---|---|---|
accept | accept(t) | void accept(Object t) |
add | add(t) | Builder add(Object t) |
andThen | andThen(after) | Consumer andThen(Consumer after) |
build | build() | Stream build() |
StreamSupport#
class final · extends Object · java.util.stream.StreamSupport
Methods
| Method | Ring call | Java overloads |
|---|---|---|
doubleStream | doubleStream([spliterator,parallel])doubleStream([ :spliterator = v, :parallel = v ])doubleStream([supplier,characteristics,parallel])doubleStream([ :supplier = v, :characteristics = v, :parallel = v ]) | static DoubleStream doubleStream(OfDouble spliterator, boolean parallel)static DoubleStream doubleStream(Supplier supplier, int characteristics, boolean parallel) |
intStream | intStream([spliterator,parallel])intStream([ :spliterator = v, :parallel = v ])intStream([supplier,characteristics,parallel])intStream([ :supplier = v, :characteristics = v, :parallel = v ]) | static IntStream intStream(OfInt spliterator, boolean parallel)static IntStream intStream(Supplier supplier, int characteristics, boolean parallel) |
longStream | longStream([spliterator,parallel])longStream([ :spliterator = v, :parallel = v ])longStream([supplier,characteristics,parallel])longStream([ :supplier = v, :characteristics = v, :parallel = v ]) | static LongStream longStream(OfLong spliterator, boolean parallel)static LongStream longStream(Supplier supplier, int characteristics, boolean parallel) |
stream | stream([spliterator,parallel])stream([ :spliterator = v, :parallel = v ])stream([supplier,characteristics,parallel])stream([ :supplier = v, :characteristics = v, :parallel = v ]) | static Stream stream(Spliterator spliterator, boolean parallel)static Stream stream(Supplier supplier, int characteristics, boolean parallel) |
The methods and fields of Object are inherited.