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 |
---|---|
default IOComparator<? super T> |
IOSpliterator.getComparator()
Like
Spliterator.getComparator() . |
Modifier and Type | Method and Description |
---|---|
(package private) static <T> int |
Erase.compare(IOComparator<? super T> comparator,
T t,
T u)
Delegates to the given
IOComparator but erases its IOException for the compiler, while still throwing
the exception at runtime. |
static <T> int |
Uncheck.compare(IOComparator<T> comparator,
T t,
T u)
Compares the arguments with the comparator.
|
default java.util.Optional<T> |
IOStream.max(IOComparator<? super T> comparator)
Like
Stream.max(java.util.Comparator) . |
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 . |
default java.util.Optional<T> |
IOStream.min(IOComparator<? super T> comparator)
Like
Stream.min(java.util.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 . |
default IOStream<T> |
IOStream.sorted(IOComparator<? super T> comparator)
Like
Stream.sorted(java.util.Comparator) . |