protected static class UUIDTools.UUIDComparator extends java.lang.Object implements SerialisableComparator<java.util.UUID>
| Modifier | Constructor and Description |
|---|---|
protected |
UUIDComparator()
Creates a new UUID comparator comparing UUIDs unsigned, that is a leading
7 is less than a leading 8.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.util.UUID u1,
java.util.UUID u2) |
protected int |
compareUnsigned(long l1,
long l2)
Compares the designated longs unsigned, that is all negative longs will
be greater than all positive longs and negative longs will be reverse
ordered, that is numerical less will be more.
|
protected UUIDComparator()
protected int compareUnsigned(long l1,
long l2)
l1 - The first long to compare.l2 - The second long to compare.public int compare(java.util.UUID u1,
java.util.UUID u2)
compare in interface java.util.Comparator<java.util.UUID>