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 to
DecisionStatements.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintstatic 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, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
DecStatementComparator
public DecStatementComparator()
-
-
Method Details
-
compare
- 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.
-