Package ball.util
Class Comparators
- java.lang.Object
-
- ball.util.Comparators
-
@Deprecated public abstract class Comparators extends Object
Deprecated.- Author:
- Allen D. Ball
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T> Comparator<T>
orderedBy(List<T> list)
Deprecated.Static method to return aComparator
ordering members in the same order as theList
.
-
-
-
Method Detail
-
orderedBy
public static <T> Comparator<T> orderedBy(List<T> list)
Deprecated.Static method to return aComparator
ordering members in the same order as theList
.- Type Parameters:
T
- The type to be ordered.- Parameters:
list
- TheList
describing the order.- Returns:
- A
Comparator
enforcing the specified order.
-
-