@Test public void testEncodeBatch3() { Assert.assertEquals("W252", this.getStringEncoder().encode("Washington")); Assert.assertEquals("L000", this.getStringEncoder().encode("Lee")); Assert.assertEquals("G362", this.getStringEncoder().encode("Gutierrez")); Assert.assertEquals("P236", this.getStringEncoder().encode("Pfister")); Assert.assertEquals("J250", this.getStringEncoder().encode("Jackson")); Assert.assertEquals("T522", this.getStringEncoder().encode("Tymczak")); Assert.assertEquals("V532", this.getStringEncoder().encode("VanDeusen")); }
@Override public Object encode(final Object obj) throws EncoderException { if (!(obj instanceof String)) { throw new EncoderException("Parameter supplied to Soundex encode is not of type java.lang.String"); } return soundex((String) obj); }
Soundex implements StringEncoder { @Override public Object encode(final Object obj) throws EncoderException { if (!(obj instanceof String)) { throw new EncoderException("Parameter supplied to Soundex encode is not of type java.lang.String"); } return soundex((String) obj); } }
Soundex implements StringEncoder { @Override public Object encode(final Object obj) throws EncoderException { if (!(obj instanceof String)) { throw new EncoderException("Parameter supplied to Soundex encode is not of type java.lang.String"); } return soundex((String) obj); } Soundex();  Soundex(final char[] mapping);  Soundex(final String mapping); }
Soundex implements StringEncoder { @Override public Object encode(final Object obj) throws EncoderException { if (!(obj instanceof String)) { throw new EncoderException("Parameter supplied to Soundex encode is not of type java.lang.String"); } return soundex((String) obj); } Soundex();  Soundex(final char[] mapping);  Soundex(final String mapping); int difference(final String s1, final String s2); @Override Object encode(final Object obj); @Override String encode(final String str); @Deprecated int getMaxLength(); @Deprecated void setMaxLength(final int maxLength); String soundex(String str); }
Soundex implements StringEncoder { @Override public Object encode(final Object obj) throws EncoderException { if (!(obj instanceof String)) { throw new EncoderException("Parameter supplied to Soundex encode is not of type java.lang.String"); } return soundex((String) obj); } Soundex();  Soundex(final char[] mapping);  Soundex(final String mapping); int difference(final String s1, final String s2); @Override Object encode(final Object obj); @Override String encode(final String str); @Deprecated int getMaxLength(); @Deprecated void setMaxLength(final int maxLength); String soundex(String str); static final String US_ENGLISH_MAPPING_STRING; static final Soundex US_ENGLISH; }