示例#1
0
 /**
  * Encodes the Strings and returns the number of characters in the two encoded Strings that are
  * the same. This return value ranges from 0 through 4: 0 indicates little or no similarity, and 4
  * indicates strong similarity or identical values.
  *
  * @param s1 A String that will be encoded and compared.
  * @param s2 A String that will be encoded and compared.
  * @return The number of characters in the two encoded Strings that are the same from 0 to 4.
  * @see <a
  *     href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_de-dz_8co5.asp">
  *     MS T-SQL DIFFERENCE </a>
  * @throws EncoderException if an error occurs encoding one of the strings
  * @since 1.3
  */
 @DSGenerator(
     tool_name = "Doppelganger",
     tool_version = "2.0",
     generated_on = "2014-09-03 14:59:48.711 -0400",
     hash_original_method = "9372A1D570FF0E071E2A73F0471280C8",
     hash_generated_method = "73E7D5E07B73B540EF5D01C579CF6548")
 public int difference(String s1, String s2) throws EncoderException {
   return SoundexUtils.difference(this, s1, s2);
 }