The Java Collections.max takes only a collection of a sortable object. However since the collection is not necessarily sorted, I don't see any reason not to implement the same max function for iterable types.
Is there a max method for Iterable<T extends Comparable<? super T>>
in java's standard library?