public static <T> T
	max(final Comparator<? super T> comp, final T a, final T b) {
		return a != null ? b != null ? comp.compare(a, b) >= 0 ? a : b : a : b;
	}
Return the maximum of two values, according the given comparator.
{@code null} values are allowed.

@param comp the comparator used for determining the max value
@param a the first value to compare
@param b the second value to compare
@param <T> the type of the compared objects
@return the maximum value, or {@code null} if both values are {@code null}.
        If only one value is {@code null}, the non {@code null} values is
        returned.
jenetics/src/main/java/io/jenetics/stat/MinMax.java