Class OrderComparator<T extends Ordered>
- java.lang.Object
-
- org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common.OrderComparator<T>
-
- Type Parameters:
T
- T
- All Implemented Interfaces:
Serializable
,Comparator<T>
public class OrderComparator<T extends Ordered> extends Object implements Comparator<T>, Serializable
Comparator for comparing objects which extend Ordered.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OrderComparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T extends Ordered>
OrderComparator<T>build()
int
compare(T obj1, T obj2)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
build
public static <T extends Ordered> OrderComparator<T> build()
-
-