Class KeyPairComparator
- java.lang.Object
-
- com.atlassian.confluence.security.trust.KeyPairComparator
-
- All Implemented Interfaces:
Comparator
public class KeyPairComparator extends Object implements Comparator
ComparesKeyPair
s for equality based on theequals
method of the public and private keys. This is necessary as KeyPair does not define anequals
method itself. This comparator does not actually impose an order key pairs.
-
-
Constructor Summary
Constructors Constructor Description KeyPairComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Object o1, Object o2)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(Object o1, Object o2)
- Specified by:
compare
in interfaceComparator
-
-