public class MatchRatingApproachEncoder extends Object implements StringEncoder
| 构造器和说明 |
|---|
MatchRatingApproachEncoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
encode(Object pObject)
Encodes an Object using the Match Rating Approach algorithm.
|
String |
encode(String name)
Encodes a String using the Match Rating Approach (MRA) algorithm.
|
boolean |
isEncodeEquals(String name1,
String name2)
Determines if two names are homophonous via Match Rating Approach (MRA) algorithm.
|
public final Object encode(Object pObject) throws EncoderException
encode 在接口中 EncoderpObject - Object to encodeEncoderException - if the parameter supplied is not of type java.lang.Stringpublic final String encode(String name)
encode 在接口中 StringEncodername - String object to encodepublic boolean isEncodeEquals(String name1, String name2)
encode(String).name1 - First of the 2 strings (names) to comparename2 - Second of the 2 names to comparetrue if the encodings are identical false otherwise.Copyright © 2017. All rights reserved.