T - the type of the operands and result of the operator.@FunctionalInterface public interface IOBinaryOperator<T> extends IOBiFunction<T,T,T>
BinaryOperator but throws IOException.IOBiFunction,
BinaryOperator| Modifier and Type | Method and Description |
|---|---|
default java.util.function.BinaryOperator<T> |
asBinaryOperator()
Creates a
BinaryOperator for this instance that throws UncheckedIOException instead of
IOException. |
static <T> IOBinaryOperator<T> |
maxBy(IOComparator<? super T> comparator)
Creates a
IOBinaryOperator which returns the greater of two elements according to the specified
Comparator. |
static <T> IOBinaryOperator<T> |
minBy(IOComparator<? super T> comparator)
Creates a
IOBinaryOperator which returns the lesser of two elements according to the specified
Comparator. |
andThen, apply, asBiFunctionstatic <T> IOBinaryOperator<T> maxBy(IOComparator<? super T> comparator)
IOBinaryOperator which returns the greater of two elements according to the specified
Comparator.T - the type of the input arguments of the comparatorcomparator - a Comparator for comparing the two valuesBinaryOperator which returns the greater of its operands, according to the supplied
Comparatorjava.lang.NullPointerException - if the argument is nullstatic <T> IOBinaryOperator<T> minBy(IOComparator<? super T> comparator)
IOBinaryOperator which returns the lesser of two elements according to the specified
Comparator.T - the type of the input arguments of the comparatorcomparator - a Comparator for comparing the two valuesBinaryOperator which returns the lesser of its operands, according to the supplied
Comparatorjava.lang.NullPointerException - if the argument is nulldefault java.util.function.BinaryOperator<T> asBinaryOperator()
BinaryOperator for this instance that throws UncheckedIOException instead of
IOException.Copyright © 2010 - 2023 Adobe. All Rights Reserved