Package com.yahoo.collections
Class Comparables
java.lang.Object
com.yahoo.collections.Comparables
Utilities for
Comparable
classes.- Author:
- hakon
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Comparable<? super T>>
Tmax
(T first, T second) Returns the greatest element, orsecond
if they are equal according tocompareTo
.static <T extends Comparable<? super T>>
Tmin
(T first, T second) Returns the least element, orfirst
if they are equal according tocompareTo
.