max


Description:

public T max (owned ComparatorFunc<T> cmp)

Returns the maximum element using the given comparator, or null if the stream is empty.

Parameters:

cmp

the comparator.

Returns:

the maximum element or null.