Class TemplateReferenceComparator
- java.lang.Object
-
- de.aristaflow.adept2.model.processmodel.TemplateReferenceComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<TemplateReference>
public class TemplateReferenceComparator extends Object implements Comparator<TemplateReference>, Serializable
This comparator can be used to compareTemplateReference
s. It compares by process type, template name and afterwards by ID.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TemplateReferenceComparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(TemplateReference o1, TemplateReference o2)
static Collection<TemplateReference>
getSortedTemplRefs(Collection<TemplateReference> unsortedTemplRefs)
Take the designated template references 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(TemplateReference o1, TemplateReference o2)
- Specified by:
compare
in interfaceComparator<TemplateReference>
-
getSortedTemplRefs
public static Collection<TemplateReference> getSortedTemplRefs(Collection<TemplateReference> unsortedTemplRefs)
Take the designated template references and return them as sorted collection.- Parameters:
unsortedTemplRefs
- The unsorted collection of template references.- Returns:
- A sorted collection of the template references.
-
-