* Returns a reducer returning the maximum of two long elements,
* using the given comparator.
*/
public static LongReducer longMaxReducer
(final LongComparator comparator) {
return new LongReducer() {
public long op(long a, long b) {
return (comparator.compare(a, b) >= 0) ? a : b;
}
};
}