@Test public void testEncodeBatch2() { Assert.assertEquals("A462", this.getStringEncoder().encode("Allricht")); Assert.assertEquals("E166", this.getStringEncoder().encode("Eberhard")); Assert.assertEquals("E521", this.getStringEncoder().encode("Engebrethson")); Assert.assertEquals("H512", this.getStringEncoder().encode("Heimbach")); Assert.assertEquals("H524", this.getStringEncoder().encode("Hanselmann")); Assert.assertEquals("H431", this.getStringEncoder().encode("Hildebrand")); Assert.assertEquals("K152", this.getStringEncoder().encode("Kavanagh")); Assert.assertEquals("L530", this.getStringEncoder().encode("Lind")); Assert.assertEquals("L222", this.getStringEncoder().encode("Lukaschowsky")); Assert.assertEquals("M235", this.getStringEncoder().encode("McDonnell")); Assert.assertEquals("M200", this.getStringEncoder().encode("McGee")); Assert.assertEquals("O155", this.getStringEncoder().encode("Opnian")); Assert.assertEquals("O155", this.getStringEncoder().encode("Oppenheimer")); Assert.assertEquals("R355", this.getStringEncoder().encode("Riedemanas")); Assert.assertEquals("Z300", this.getStringEncoder().encode("Zita")); Assert.assertEquals("Z325", this.getStringEncoder().encode("Zitzmeinn")); }
@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; }