Class TopologicalNodeIdComparator
- java.lang.Object
-
- de.aristaflow.adept2.model.processmodel.tools.TopologicalNodeIdComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<Integer>
public class TopologicalNodeIdComparator extends Object implements Comparator<Integer>, Serializable
A comparator for node IDs of typeInteger
determining the order of the node IDs according to their topological ID.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TopologicalNodeIdComparator(Template template)
Creates a comparator for node IDs ordering them by their topological ID.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Integer nodeId1, Integer nodeId2)
-
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
-
-
-
-
Constructor Detail
-
TopologicalNodeIdComparator
public TopologicalNodeIdComparator(Template template)
Creates a comparator for node IDs ordering them by their topological ID.- Parameters:
template
- The template providing the topological ID of the nodes.
-
-
Method Detail
-
compare
public int compare(Integer nodeId1, Integer nodeId2)
- Specified by:
compare
in interfaceComparator<Integer>
-
-