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 compare
TemplateReferences. It compares by process
type, template name and afterwards by ID.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintstatic 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, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
TemplateReferenceComparator
public TemplateReferenceComparator()
-
-
Method Details
-
compare
- Specified by:
comparein 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.
-