org.mvel2.util
Class Soundex

java.lang.Object
  extended by org.mvel2.util.Soundex

public class Soundex
extends Object

An implementation of Knuth's soundex algorithm. Used by the soundslike operator.


Field Summary
static char[] MAP
           
 
Constructor Summary
Soundex()
           
 
Method Summary
static String soundex(String s)
          Convert the given String to its Soundex code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAP

public static final char[] MAP
Constructor Detail

Soundex

public Soundex()
Method Detail

soundex

public static String soundex(String s)
Convert the given String to its Soundex code.

Parameters:
s - input string
Returns:
null If the given string can't be mapped to Soundex.


Copyright © 2011. All Rights Reserved.