Class DataElementComparator
- java.lang.Object
-
- de.aristaflow.adept2.model.processmodel.DataElementComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<DataElement>
public class DataElementComparator extends Object implements Comparator<DataElement>, Serializable
This comparator can be used to compare DataElements.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataElementComparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(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, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(DataElement o1, DataElement o2)
- Specified by:
compare
in 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.
-
-