Class NodeComparator
- java.lang.Object
-
- de.aristaflow.adept2.model.processmodel.NodeComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<Node>
public class NodeComparator extends Object implements Comparator<Node>, Serializable
This comparator can be used to compare Nodes.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeComparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Node o1, Node o2)
static Collection<Node>
getSortedNodes(Collection<Node> unsortedNodes)
Take the given nodes and return them as sorted collection.-
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
-
compare
public int compare(Node o1, Node o2)
- Specified by:
compare
in interfaceComparator<Node>
-
getSortedNodes
public static Collection<Node> getSortedNodes(Collection<Node> unsortedNodes)
Take the given nodes and return them as sorted collection.- Parameters:
unsortedNodes
- The unsorted collection of nodes.- Returns:
- A sorted collection of the nodes.
-
-