public class UUIDComparator extends Object implements Comparator<UUID>
UUID
s. Unlike the
UUID.compareTo(UUID)
method, this comparator interprets the UUIDs as
unsigned integers, thus ordering them in the same order that most non-Java
code would use.Constructor and Description |
---|
UUIDComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(UUID uuid1,
UUID uuid2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(UUID uuid1, UUID uuid2)
compare
in interface Comparator<UUID>
Copyright © 2011–2017 aquenos GmbH. All rights reserved.