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:
  • Constructor Details

    • NodeComparator

      public NodeComparator()
  • Method Details

    • compare

      public int compare(Node o1, Node o2)
      Specified by:
      compare in interface Comparator<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.