Class InstanceReferenceComparator
- java.lang.Object
-
- de.aristaflow.adept2.model.processmodel.tools.InstanceReferenceComparator
-
- All Implemented Interfaces:
SerialisableComparator<InstanceReference>
,Serializable
,Comparator<InstanceReference>
public class InstanceReferenceComparator extends Object implements SerialisableComparator<InstanceReference>
This comparator can be used to compare instance references used inTreeMap
s.- 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 InstanceReferenceComparator()
Creates a newInstanceReferenceComparator
with a UUID comparator comparing UUIDs unsigned.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(InstanceReference o1, InstanceReference o2)
-
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(InstanceReference o1, InstanceReference o2)
- Specified by:
compare
in interfaceComparator<InstanceReference>
-
-