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 compareTemplateProxy
s. It compares by process type, version, name, creation time and afterwards by ID.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TemplateProxyComparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(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, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(TemplateProxy o1, TemplateProxy o2)
- Specified by:
compare
in 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.
-
-