Package | Description |
---|---|
org.apache.commons.io.function |
Provides IO-only related functional interfaces for lambda expressions and method references.
|
Modifier and Type | Method and Description |
---|---|
static <T> IOBinaryOperator<T> |
IOBinaryOperator.maxBy(IOComparator<? super T> comparator)
Creates a
IOBinaryOperator which returns the greater of two elements according to the specified
Comparator . |
static <T> IOBinaryOperator<T> |
IOBinaryOperator.minBy(IOComparator<? super T> comparator)
Creates a
IOBinaryOperator which returns the lesser of two elements according to the specified
Comparator . |
Modifier and Type | Method and Description |
---|---|
default java.util.Optional<T> |
IOStream.reduce(IOBinaryOperator<T> accumulator)
Like
Stream.reduce(java.util.function.BinaryOperator) . |
default T |
IOStream.reduce(T identity,
IOBinaryOperator<T> accumulator)
Like
Stream.reduce(Object, java.util.function.BinaryOperator) . |
default <U> U |
IOStream.reduce(U identity,
IOBiFunction<U,? super T,U> accumulator,
IOBinaryOperator<U> combiner)
Like
Stream.reduce(Object, BiFunction, java.util.function.BinaryOperator) . |