public class MatchRatingApproachEncoder extends java.lang.Object implements StringEncoder
This class is immutable and thread-safe.
| Constructor and Description |
|---|
MatchRatingApproachEncoder()
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
encode(java.lang.Object object)
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 MatchRatingApproachEncoder()
public final java.lang.Object encode(java.lang.Object object)
throws EncoderException
String.encode in interface Encoderobject - Object to encode.String) containing the Match Rating Approach code which corresponds to the
String supplied.EncoderException - if the parameter supplied is not of type String.public final java.lang.String encode(java.lang.String name)
encode in interface StringEncodername - String object to encode.public boolean isEncodeEquals(java.lang.String name1,
java.lang.String name2)
encode(String).name1 - First of the 2 strings (names) to compare.name2 - Second of the 2 names to compare.true if the encodings are identical false otherwise.Copyright © 2010 - 2025 Adobe. All Rights Reserved