public class KeyPairComparator extends Object implements Comparator
KeyPair
s 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, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(Object o1, Object o2)
compare
in interface Comparator
Copyright © 2003–2019 Atlassian. All rights reserved.