Class Soundex


  • public class Soundex
    extends java.lang.Object
    An implementation of Knuth's soundex algorithm. Used by the soundslike operator.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static char[] MAP  
    • Constructor Summary

      Constructors 
      Constructor Description
      Soundex()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String soundex​(java.lang.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 java.lang.String soundex​(java.lang.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.