Class TemplateReferenceComparator
- java.lang.Object
-
- de.aristaflow.adept2.model.processmodel.tools.TemplateReferenceComparator
-
- All Implemented Interfaces:
SerialisableComparator<TemplateReference>
,Serializable
,Comparator<TemplateReference>
public class TemplateReferenceComparator extends Object implements SerialisableComparator<TemplateReference>
This comparator comparesTemplateReference
s by the corresponding template IDs. Note: this comparator imposes orderings that are inconsistent with equals.- Author:
- Ulrich Kreher
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected SerialisableComparator<UUID>
uuidComparator
The comparator comparing UUIDs unsigned, that is a leading 8 is less than a leading 7.
-
Constructor Summary
Constructors Constructor Description TemplateReferenceComparator()
Creates a newTemplateReferenceComparator
with a UUID comparator comparing UUIDs unsigned.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(TemplateReference t1, TemplateReference t2)
-
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
-
-
-
-
Field Detail
-
uuidComparator
protected final SerialisableComparator<UUID> uuidComparator
The comparator comparing UUIDs unsigned, that is a leading 8 is less than a leading 7.
-
-
Method Detail
-
compare
public int compare(TemplateReference t1, TemplateReference t2)
- Specified by:
compare
in interfaceComparator<TemplateReference>
-
-