Class NodeComparator
java.lang.Object
de.aristaflow.adept2.model.processmodel.NodeComparator
- All Implemented Interfaces:
Serializable,Comparator<Node>
This comparator can be used to compare Nodes.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintstatic 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, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
NodeComparator
public NodeComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<Node>
-
getSortedNodes
Take the given nodes and return them as sorted collection.- Parameters:
unsortedNodes- The unsorted collection of nodes.- Returns:
- A sorted collection of the nodes.
-