Package com.complexible.common.util
Class NaturalOrderComparator<T extends java.lang.Comparable<T>>
- java.lang.Object
-
- com.complexible.common.util.NaturalOrderComparator<T>
-
- All Implemented Interfaces:
java.util.Comparator<T>
public final class NaturalOrderComparator<T extends java.lang.Comparable<T>> extends java.lang.Object implements java.util.Comparator<T>
Simple
Comparator
implementation which can be used forComparable
objects.- Since:
- 2.3
- Version:
- 2.5
- Author:
- Michael Grove
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(T o1, T o2)
static <T extends java.lang.Comparable<T>>
NaturalOrderComparator<T>create()
-
-
-
Method Detail
-
create
public static <T extends java.lang.Comparable<T>> NaturalOrderComparator<T> create()
-
-