Class StructuredEdgeComparator
java.lang.Object
de.aristaflow.adept2.model.processmodel.StructuredEdgeComparator
- All Implemented Interfaces:
Serializable,Comparator<StructuredEdge>
public class StructuredEdgeComparator
extends Object
implements Comparator<StructuredEdge>, Serializable
This comparator can be used to compare StructuredEdges.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(StructuredEdge o1, StructuredEdge o2) static Collection<StructuredEdge>getSortedEdges(Collection<StructuredEdge> unsortedEdges) Take the given edges 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
-
StructuredEdgeComparator
public StructuredEdgeComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<StructuredEdge>
-
getSortedEdges
Take the given edges and return them as sorted collection.- Parameters:
unsortedEdges- The unsorted collection of structured edges.- Returns:
- A sorted collection of the edges.
-