Class NodeOrderComparator
- java.lang.Object
-
- org.apache.ignite.internal.cluster.NodeOrderComparator
-
- All Implemented Interfaces:
Serializable,Comparator<ClusterNode>
public class NodeOrderComparator extends Object implements Comparator<ClusterNode>, Serializable
Node order comparator.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(ClusterNode n1, ClusterNode n2)static Comparator<ClusterNode>getInstance()-
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
-
getInstance
public static Comparator<ClusterNode> getInstance()
- Returns:
- Node comparator.
-
compare
public int compare(ClusterNode n1, ClusterNode n2)
- Specified by:
comparein interfaceComparator<ClusterNode>
-
-