| Package | Description |
|---|---|
| com.annimon.stream | |
| com.annimon.stream.function |
| Modifier and Type | Method and Description |
|---|---|
Optional<T> |
Stream.reduce(BiFunction<T,T,T> accumulator)
Reduces the elements using provided associative accumulation function.
|
<R> R |
Stream.reduce(R identity,
BiFunction<? super R,? super T,? extends R> accumulator)
Reduces the elements using provided identity value and the associative accumulation function.
|
static <F,S,R> Stream<R> |
Stream.zip(Iterator<? extends F> iterator1,
Iterator<? extends S> iterator2,
BiFunction<? super F,? super S,? extends R> combiner)
Combines two iterators to a stream by applying specified combiner function to each element at same position.
|
static <F,S,R> Stream<R> |
Stream.zip(Stream<? extends F> stream1,
Stream<? extends S> stream2,
BiFunction<? super F,? super S,? extends R> combiner)
Combines two streams by applying specified combiner function to each element at same position.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
BinaryOperator<T>
Represents an operation on two operands that produces a result of the
same type as its operand.
|
| Modifier and Type | Method and Description |
|---|---|
static <T,U,R,V> BiFunction<T,U,V> |
BiFunction.Util.andThen(BiFunction<? super T,? super U,? extends R> f1,
Function<? super R,? extends V> f2)
Composes
BiFunction calls. |
| Modifier and Type | Method and Description |
|---|---|
static <T,U,R,V> BiFunction<T,U,V> |
BiFunction.Util.andThen(BiFunction<? super T,? super U,? extends R> f1,
Function<? super R,? extends V> f2)
Composes
BiFunction calls. |
Copyright © 2017. All rights reserved.