public class KeyPairComparator extends Object implements Comparator
KeyPairs for equality based on the equals method of the public and private keys.
This is necessary as KeyPair does not define an equals method itself.
This comparator does not actually impose an order key pairs.| Constructor and Description |
|---|
KeyPairComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object o1,
Object o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic int compare(Object o1, Object o2)
compare in interface ComparatorCopyright © 2003–2022 Atlassian. All rights reserved.