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 type
Integer determining the order of the node IDs
according to their topological ID.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTopologicalNodeIdComparator(Template template) Creates a comparator for node IDs ordering them by their topological ID. -
Method Summary
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
-
TopologicalNodeIdComparator
Creates a comparator for node IDs ordering them by their topological ID.- Parameters:
template- The template providing the topological ID of the nodes.
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<Integer>
-