final class SoundexUtils extends Object
Constructor and Description |
---|
SoundexUtils() |
Modifier and Type | Method and Description |
---|---|
(package private) static String |
clean(String str)
Cleans up the input string before Soundex processing by only returning
upper case letters.
|
(package private) static int |
difference(StringEncoder encoder,
String s1,
String s2)
Encodes the Strings and returns the number of characters in the two
encoded Strings that are the same.
|
(package private) static int |
differenceEncoded(String es1,
String es2)
Returns the number of characters in the two Soundex encoded Strings that
are the same.
|
SoundexUtils()
static String clean(String str)
str
- The String to clean.static int difference(StringEncoder encoder, String s1, String s2) throws EncoderException
encoder
- The encoder to use to encode the Strings.s1
- A String that will be encoded and compared.s2
- A String that will be encoded and compared.EncoderException
- if an error occurs encoding one of the stringsdifferenceEncoded(String,String)
,
MS T-SQL DIFFERENCEstatic int differenceEncoded(String es1, String es2)
es1
- An encoded String.es2
- An encoded String.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses