Class CodeDescriptorComparator
- java.lang.Object
-
- de.aristaflow.adept2.model.processmodel.xml.CodeDescriptorComparator
-
- All Implemented Interfaces:
SerialisableComparator<ResourceDescriptor>
,Serializable
,Comparator<ResourceDescriptor>
public class CodeDescriptorComparator extends Object implements SerialisableComparator<ResourceDescriptor>
This comparator can be used to compare code descriptors.- Author:
- Marco Waimer
- 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 CodeDescriptorComparator()
Creates a newCodeDescriptorComparator
with a UUID comparator comparing UUIDs unsigned.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(ResourceDescriptor o1, ResourceDescriptor 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(ResourceDescriptor o1, ResourceDescriptor o2)
- Specified by:
compare
in interfaceComparator<ResourceDescriptor>
-
-