- max(Collection<? extends T>) - Static method in class java.util.Collections
-
Returns the maximum element of the given collection, according to the natural ordering of its elements.
- max(Collection<? extends T>, Comparator<? super T>) - Static method in class java.util.Collections
-
Returns the maximum element of the given collection, according to the order induced by the specified comparator.
- min(Collection<? extends T>) - Static method in class java.util.Collections
-
Returns the minimum element of the given collection, according to the natural ordering of its elements.
- min(Collection<? extends T>, Comparator<? super T>) - Static method in class java.util.Collections
-
Returns the minimum element of the given collection, according to the order induced by the specified comparator.