Class DataElementComparator
java.lang.Object
de.aristaflow.adept2.model.processmodel.DataElementComparator
- All Implemented Interfaces:
Serializable,Comparator<DataElement>
This comparator can be used to compare DataElements.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(DataElement o1, DataElement o2) static Collection<DataElement>getSortedDataElements(Collection<DataElement> unsortedDataElements) Take the given data elements 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
-
DataElementComparator
public DataElementComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<DataElement>
-
getSortedDataElements
public static Collection<DataElement> getSortedDataElements(Collection<DataElement> unsortedDataElements) Take the given data elements and return them as sorted collection.- Parameters:
unsortedDataElements- The unsorted collection of data elements.- Returns:
- A sorted collection of the data elements.
-