Class StructuredDataEdgeComparator
- java.lang.Object
-
- de.aristaflow.adept2.model.processmodel.StructuredDataEdgeComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<StructuredDataEdge>
public class StructuredDataEdgeComparator extends Object implements Comparator<StructuredDataEdge>, Serializable
This comparator can be used to compare StructuredDataEdges.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StructuredDataEdgeComparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(StructuredDataEdge o1, StructuredDataEdge o2)
static Collection<StructuredDataEdge>
getSortedDataEdges(Collection<StructuredDataEdge> unsortedDataEdges)
Take the given data 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(StructuredDataEdge o1, StructuredDataEdge o2)
- Specified by:
compare
in interfaceComparator<StructuredDataEdge>
-
getSortedDataEdges
public static Collection<StructuredDataEdge> getSortedDataEdges(Collection<StructuredDataEdge> unsortedDataEdges)
Take the given data edges and return them as sorted collection.- Parameters:
unsortedDataEdges
- The unsorted collection of structured data edges.- Returns:
- A sorted collection of the data edges.
-
-