Package Summary  Overview Summary

class:BinaryOperator [CHANGED]

  • Type Parameters:
    T - the type of operands to apply and of the result
    All Superinterfaces:
    BiFunction<T,T,T>
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.


    @FunctionalInterface
    public interface BinaryOperator<T>
    extends BiFunction<T,T,T>
    An operation upon two operands yielding a result. This is a specialization of BiFunction where the operands and the result are all of the same type.
    Since:
    1.8
    See Also:
    BiFunction
  • Type Parameters:
    T - the type of operands to apply and of the result
    All Superinterfaces:
    BiFunction<T,T,T>
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.


    @FunctionalInterface
    public interface BinaryOperator<T>
    extends BiFunction<T,T,T>
    An operation upon two operands yielding a result. This is a specialization of BiFunction where the operands and the result are all of the same type.
    Since:
    1.8
    See Also:
    BiFunction
  • Type Parameters:
    T - the type of operands to apply and of the result
    All Superinterfaces:
    BiFunction<T,T,T>
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.


    @FunctionalInterface
    public interface BinaryOperator<T>
    extends BiFunction<T,T,T>
    An operation upon two operands yielding a result. This is a specialization of BiFunction where the operands and the result are all of the same type.
    Since:
    1.8
    See Also:
    BiFunction

method:minBy(java.util.Comparator) [ADDED]

  • minBy

    static <T> BinaryOperator<T> minBy(Comparator<? super T> comparator)
    
    Constructs a BinaryOperator which returns the lesser of two elements according to the specified Comparator
    Parameters:
    comparator - A Comparator for comparing the two values
    Returns:
    a BinaryOperator which returns the lesser of its operands, according to the supplied Comparator

method:maxBy(java.util.Comparator) [ADDED]

  • maxBy

    static <T> BinaryOperator<T> maxBy(Comparator<? super T> comparator)
    
    Constructs a BinaryOperator which returns the greater of two elements according to the specified Comparator
    Parameters:
    comparator - A Comparator for comparing the two values
    Returns:
    a BinaryOperator which returns the greater of its operands, according to the supplied Comparator