Class DecStatementComparator
- java.lang.Object
-
- de.aristaflow.adept2.model.processmodel.DecStatementComparator
-
- All Implemented Interfaces:
Serializable,Comparator<DecisionStatement>
public class DecStatementComparator extends Object implements Comparator<DecisionStatement>, Serializable
This comparator applies toDecisionStatements.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DecStatementComparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(DecisionStatement o1, DecisionStatement o2)static Collection<DecisionStatement>getSortedDecisionStatements(Collection<DecisionStatement> unsortedDs)Take the given decision statements and returns 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(DecisionStatement o1, DecisionStatement o2)
- Specified by:
comparein interfaceComparator<DecisionStatement>
-
getSortedDecisionStatements
public static Collection<DecisionStatement> getSortedDecisionStatements(Collection<DecisionStatement> unsortedDs)
Take the given decision statements and returns them as sorted collection.- Parameters:
unsortedDs- The unsorted collection of decision statements.- Returns:
- A sorted collection of the decision statements.
-
-