URL.openConnection()
instead.
Please visit this webpage
for further details.@Deprecated
public class StringEncoderComparator
extends java.lang.Object
implements java.util.Comparator
Constructor and Description |
---|
StringEncoderComparator()
Deprecated.
Constructs a new instance.
|
StringEncoderComparator(StringEncoder stringEncoder)
Deprecated.
Constructs a new instance with the given algorithm.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Deprecated.
Compares two strings based not on the strings
themselves, but on an encoding of the two
strings using the StringEncoder this Comparator
was created with.
|
public StringEncoderComparator()
public StringEncoderComparator(StringEncoder stringEncoder)
stringEncoder
- the StringEncoder used for comparisons.public int compare(java.lang.Object o1, java.lang.Object o2)
EncoderException
is encountered, return 0
.compare
in interface java.util.Comparator
o1
- the object to compareo2
- the object to compare toComparable