@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class TLSCipherSuiteComparator extends java.lang.Object implements java.util.Comparator<java.lang.String>, java.io.Serializable
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.String s1,
java.lang.String s2)
Compares the provided strings to determine the logical order of the TLS
cipher suites that they represent.
|
boolean |
equals(java.lang.Object o)
Indicates whether the provided object is logically equivalent to this TLS
cipher suite comparator.
|
static TLSCipherSuiteComparator |
getInstance()
Retrieves the singleton instance of this TLS cipher suite comparator.
|
int |
hashCode()
Retrieves the hash code for this TLS cipher suite comparator.
|
public static TLSCipherSuiteComparator getInstance()
public int compare(java.lang.String s1, java.lang.String s2)
compare
in interface java.util.Comparator<java.lang.String>
s1
- The first string to compare. It must not be null
, and
it should represent a valid cipher suite name.s2
- The second string to compare. It must not be null
, and
it should represent a valid cipher suite name.public boolean equals(java.lang.Object o)
equals
in interface java.util.Comparator<java.lang.String>
equals
in class java.lang.Object
o
- The object for which to make the determination.true
if the provided object is logically equivalent to
this TLS cipher suite comparator.public int hashCode()
hashCode
in class java.lang.Object