| Package | Description |
|---|---|
| com.annimon.stream | |
| com.annimon.stream.function | |
| com.annimon.stream.operator |
| Modifier and Type | Method and Description |
|---|---|
static <T> Stream<T> |
Stream.merge(Iterator<? extends T> iterator1,
Iterator<? extends T> iterator2,
BiFunction<? super T,? super T,ObjMerge.MergeResult> selector)
Merges elements of two iterators according to the supplied selector function.
|
static <T> Stream<T> |
Stream.merge(Stream<? extends T> stream1,
Stream<? extends T> stream2,
BiFunction<? super T,? super T,ObjMerge.MergeResult> selector)
Merges elements of two streams according to the supplied selector function.
|
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.
|
Stream<T> |
Stream.scan(BiFunction<T,T,T> accumulator)
Returns a
Stream produced by iterative application of a accumulation function
to reduction value and next element of the current stream. |
<R> Stream<R> |
Stream.scan(R identity,
BiFunction<? super R,? super T,? extends R> accumulator)
Returns a
Stream produced by iterative application of a accumulation function
to an initial element identity and next element of the current stream. |
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. |
static <T,U,R> BiFunction<U,T,R> |
BiFunction.Util.reverse(BiFunction<? super T,? super U,? extends R> function)
Returns a
BiFunction that reverses the input arguments order
of the specified BiFunction. |
| 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. |
static <T,U,R> BiFunction<U,T,R> |
BiFunction.Util.reverse(BiFunction<? super T,? super U,? extends R> function)
Returns a
BiFunction that reverses the input arguments order
of the specified BiFunction. |
static <T,U,R> IndexedBiFunction<T,U,R> |
IndexedBiFunction.Util.wrap(BiFunction<? super T,? super U,? extends R> function)
Wraps
BiFunction and returns IndexedBiFunction. |
| Constructor and Description |
|---|
ObjMerge(Iterator<? extends T> iterator1,
Iterator<? extends T> iterator2,
BiFunction<? super T,? super T,ObjMerge.MergeResult> selector) |
ObjScan(Iterator<? extends T> iterator,
BiFunction<T,T,T> accumulator) |
ObjScanIdentity(Iterator<? extends T> iterator,
R identity,
BiFunction<? super R,? super T,? extends R> accumulator) |
ObjZip(Iterator<? extends F> iterator1,
Iterator<? extends S> iterator2,
BiFunction<? super F,? super S,? extends R> combiner) |
Copyright © 2018. All rights reserved.