Class TemplateProxyComparator
java.lang.Object
de.aristaflow.adept2.model.processmodel.TemplateProxyComparator
- All Implemented Interfaces:
Serializable,Comparator<TemplateProxy>
public class TemplateProxyComparator
extends Object
implements Comparator<TemplateProxy>, Serializable
This comparator can be used to compare
TemplateProxys. It compares by process
type, version, name, creation time and afterwards by ID.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(TemplateProxy o1, TemplateProxy o2) static Collection<TemplateProxy>getSortedTemplProxies(Collection<TemplateProxy> unsortedTemplProxies) Take the designated template proxies 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
-
TemplateProxyComparator
public TemplateProxyComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<TemplateProxy>
-
getSortedTemplProxies
public static Collection<TemplateProxy> getSortedTemplProxies(Collection<TemplateProxy> unsortedTemplProxies) Take the designated template proxies and return them as sorted collection.- Parameters:
unsortedTemplProxies- The unsorted collection of template proxies.- Returns:
- A sorted collection of the template proxies.
-