public static < T extends Comparable < T > > T max ( T lhs , T rhs ) { return BinaryOperator . maxBy ( new ComparableComparator < T > ( ) ) . apply ( lhs , rhs ) ; }
Evaluates max of two comparable elements .