static>T max(Collection extends T> coll)
Returns the maximum element of the given collection, according to the natural ordering of its elements.
static T max(Collection extends T> coll, Comparator super T> comp)
Returns the maximum element of the given collection, according to the order induced by the specified comparator.
static>T min(Collection extends T> coll)
Returns the minimum element of the given collection, according to the natural ordering of its elements.
static T min(Collection extends T> coll, Comparator super T> comp)
Returns the minimum element of the given collection, according to the order induced by the specified comparator.