URL.openConnection()
instead.
Please visit this webpage
for further details.@Deprecated public class DoubleMetaphone extends java.lang.Object implements StringEncoder
Modifier and Type | Class and Description |
---|---|
class |
DoubleMetaphone.DoubleMetaphoneResult
Deprecated.
Inner class for storing results, since there is the optional alternate
encoding.
|
Constructor and Description |
---|
DoubleMetaphone()
Deprecated.
Creates an instance of this DoubleMetaphone encoder
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
doubleMetaphone(java.lang.String value)
Deprecated.
Encode a value with Double Metaphone
|
java.lang.String |
doubleMetaphone(java.lang.String value,
boolean alternate)
Deprecated.
Encode a value with Double Metaphone, optionally using the alternate
encoding.
|
java.lang.Object |
encode(java.lang.Object obj)
Deprecated.
Encode the value using DoubleMetaphone.
|
java.lang.String |
encode(java.lang.String value)
Deprecated.
Encode the value using DoubleMetaphone.
|
int |
getMaxCodeLen()
Deprecated.
Returns the maxCodeLen.
|
boolean |
isDoubleMetaphoneEqual(java.lang.String value1,
java.lang.String value2)
Deprecated.
Check if the Double Metaphone values of two
String values
are equal. |
boolean |
isDoubleMetaphoneEqual(java.lang.String value1,
java.lang.String value2,
boolean alternate)
Deprecated.
Check if the Double Metaphone values of two
String values
are equal, optionally using the alternate value. |
void |
setMaxCodeLen(int maxCodeLen)
Deprecated.
Sets the maxCodeLen.
|
public DoubleMetaphone()
public java.lang.String doubleMetaphone(java.lang.String value)
value
- String to encodepublic java.lang.String doubleMetaphone(java.lang.String value, boolean alternate)
value
- String to encodealternate
- use alternate encodepublic java.lang.Object encode(java.lang.Object obj) throws EncoderException
obj
is a String
(like Metaphone
).encode
in interface Encoder
obj
- Object to encode (should be of type String)EncoderException
- encode parameter is not of type Stringpublic java.lang.String encode(java.lang.String value)
encode
in interface StringEncoder
value
- String to encodepublic boolean isDoubleMetaphoneEqual(java.lang.String value1, java.lang.String value2)
String
values
are equal.value1
- The left-hand side of the encoded String.equals(Object)
.value2
- The right-hand side of the encoded String.equals(Object)
.true
if the encoded String
s are equal;
false
otherwise.isDoubleMetaphoneEqual(String,String,boolean)
public boolean isDoubleMetaphoneEqual(java.lang.String value1, java.lang.String value2, boolean alternate)
String
values
are equal, optionally using the alternate value.value1
- The left-hand side of the encoded String.equals(Object)
.value2
- The right-hand side of the encoded String.equals(Object)
.alternate
- use the alternate value if true
.true
if the encoded String
s are equal;
false
otherwise.public int getMaxCodeLen()
public void setMaxCodeLen(int maxCodeLen)
maxCodeLen
- The maxCodeLen to set