public class UuidComparator extends SerializableComparator<String>
Modifier and Type | Field and Description |
---|---|
static UuidComparator |
INSTANCE
A static instance of the UuidComparator
|
Constructor and Description |
---|
UuidComparator(String oid)
The UUIDComparator constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(String uuid1,
String uuid2) |
int |
compare(UUID uuid1,
UUID uuid2)
Compare two UUID.
|
setSchemaManager
equals, getNormalizer, hashCode, toString
copy, getBytecode, getFqcn, isValid, setBytecode, setFqcn
addExtension, addExtension, addName, clear, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, isDisabled, isEnabled, isObsolete, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setSchemaName, setSpecification, unlock
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final UuidComparator INSTANCE
public UuidComparator(String oid)
oid
- The Comparator's OIDpublic int compare(String uuid1, String uuid2)
compare
in interface Comparator<String>
compare
in class SerializableComparator<String>
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.