| Package | Description |
|---|---|
| com.landawn.abacus.util | |
| com.landawn.abacus.util.function |
| Modifier and Type | Method and Description |
|---|---|
static <T,E extends Throwable> |
Fn.Fnn.from(BinaryOperator<T> op) |
static <T,E extends Exception> |
Fn.Fnn.ignoringMerger() |
static <T,E extends Exception> |
Fn.Fnn.replacingMerger() |
static <T,E extends Exception> |
Fn.Fnn.throwingMerger() |
| Modifier and Type | Method and Description |
|---|---|
<K> ExceptionalStream<T,E> |
ExceptionalStream.distinctBy(Throwables.Function<? super T,K,? extends E> keyMapper,
Throwables.BinaryOperator<T,? extends E> mergeFunction)
Distinct and filter by occurrences.
|
<K,V> ExceptionalStream<Map.Entry<K,V>,E> |
ExceptionalStream.groupBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Throwables.Function<? super T,? extends V,? extends E> valueMapper,
Throwables.BinaryOperator<V,? extends E> mergeFunction) |
<K,V> ExceptionalStream<Map.Entry<K,V>,E> |
ExceptionalStream.groupBy(Throwables.Function<? super T,? extends K,? extends E> keyMapper,
Throwables.Function<? super T,? extends V,? extends E> valueMapper,
Throwables.BinaryOperator<V,? extends E> mergeFunction,
Supplier<? extends Map<K,V>> mapFactory) |
<U,K> ExceptionalStream<Pair<T,U>,E> |
ExceptionalStream.groupJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper,
Throwables.BinaryOperator<U,? extends E> mergeFunction)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U,K,R> ExceptionalStream<R,E> |
ExceptionalStream.groupJoin(Collection<? extends U> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper,
Throwables.BinaryOperator<U,? extends E> mergeFunction,
Throwables.BiFunction<? super T,? super U,R,? extends E> func)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
<U,K,R> ExceptionalStream<R,E> |
ExceptionalStream.groupJoin(ExceptionalStream<? extends U,E> b,
Throwables.Function<? super T,? extends K,? extends E> leftKeyMapper,
Throwables.Function<? super U,? extends K,? extends E> rightKeyMapper,
Throwables.BinaryOperator<U,? extends E> mergeFunction,
Throwables.BiFunction<? super T,? super U,R,? extends E> func)
The time complexity is O(n + m) : n is the size of this
Stream and m is the size of specified collection b. |
static <K,V,E extends Exception> |
Maps.invert(Map<K,V> map,
Throwables.BinaryOperator<K,E> mergeOp) |
<E2 extends Exception> |
ExceptionalStream.reduce(Throwables.BinaryOperator<T,E2> accumulator) |
<K,V,E2 extends Exception,E3 extends Exception> |
ExceptionalStream.toMap(Throwables.Function<? super T,? extends K,E2> keyMapper,
Throwables.Function<? super T,? extends V,E3> valueMapper,
Throwables.BinaryOperator<V,? extends E> mergeFunction) |
<K,V,M extends Map<K,V>,E2 extends Exception,E3 extends Exception> |
ExceptionalStream.toMap(Throwables.Function<? super T,? extends K,E2> keyMapper,
Throwables.Function<? super T,? extends V,E3> valueMapper,
Throwables.BinaryOperator<V,? extends E> mergeFunction,
Supplier<? extends M> mapFactory) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
BinaryOperator<T>
Refer to JDK API documentation at: https://docs.oracle.com/javase/8/docs/api/java/util/function/package-summary.html
|
| Modifier and Type | Method and Description |
|---|---|
default <E extends Throwable> |
BinaryOperator.toThrowable() |
Copyright © 2021. All rights reserved.