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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StructuredEdgeComparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(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, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(StructuredEdge o1, StructuredEdge o2)
- Specified by:
compare
in interfaceComparator<StructuredEdge>
-
getSortedEdges
public static Collection<StructuredEdge> getSortedEdges(Collection<StructuredEdge> unsortedEdges)
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.
-
-