public static <T extends Comparable<? super T>> T max(T first, T second) {
        return first.compareTo(second) <= 0 ? second : first;
    }
Returns the greatest element, or {@code second} if they are equal according to
{@link Comparable#compareTo(Object) compareTo}.
vespajlib/src/main/java/com/yahoo/collections/Comparables.java