@Test public void testEncodeBatch4() { Assert.assertEquals("H452", this.getStringEncoder().encode("HOLMES")); Assert.assertEquals("A355", this.getStringEncoder().encode("ADOMOMI")); Assert.assertEquals("V536", this.getStringEncoder().encode("VONDERLEHR")); Assert.assertEquals("B400", this.getStringEncoder().encode("BALL")); Assert.assertEquals("S000", this.getStringEncoder().encode("SHAW")); Assert.assertEquals("J250", this.getStringEncoder().encode("JACKSON")); Assert.assertEquals("S545", this.getStringEncoder().encode("SCANLON")); Assert.assertEquals("S532", this.getStringEncoder().encode("SAINTJOHN")); }
@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; }