public class StringEncoderComparator extends Object implements Comparator
StringEncoder. This comparator is used to sort Strings by an encoding scheme such as Soundex, Metaphone, etc. This class can come in handy if one need to sort Strings by an encoded form of a name such as Soundex.
This class is immutable and thread-safe.
|Constructor and Description|
Constructs a new instance with the given algorithm.
|Modifier and Type||Method and Description|
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.
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@Deprecated public StringEncoderComparator()
StringEncoderleads to a
NullPointerException. Will be removed in 2.0.
EncoderExceptionis encountered, return
Copyright © 2002–2014 The Apache Software Foundation. All rights reserved.