public static <T> BinaryOperator<T> maxBy (Comparator<? super T> comparator)

Returns a BinaryOperator which returns the greater of two elements according to the specified Comparator.

Parameters:
<T>    the type of the input arguments of the comparator
comparator    a Comparator for comparing the two values

Returns:  a BinaryOperator which returns the greater of its operands, according to the supplied Comparator

Exceptions:
NullPointerException    if the argument is null