public class MatchRatingApproachEncoder extends java.lang.Object implements StringEncoder
Constructor and Description |
---|
MatchRatingApproachEncoder() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
encode(java.lang.Object pObject)
Encodes an Object using the Match Rating Approach algorithm.
|
java.lang.String |
encode(java.lang.String name)
Encodes a String using the Match Rating Approach (MRA) algorithm.
|
boolean |
isEncodeEquals(java.lang.String name1,
java.lang.String name2)
Determines if two names are homophonous via Match Rating Approach (MRA) algorithm.
|
public final java.lang.Object encode(java.lang.Object pObject) throws EncoderException
encode
in interface Encoder
pObject
- Object to encodeEncoderException
- if the parameter supplied is not of type java.lang.Stringpublic final java.lang.String encode(java.lang.String name)
encode
in interface StringEncoder
name
- String object to encodepublic boolean isEncodeEquals(java.lang.String name1, java.lang.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 © 2010 - 2020 Adobe. All Rights Reserved