Caverphone2
, will be removed in 2.0.@Deprecated public class Caverphone extends Object implements StringEncoder
Caverphone2
instance.
This is an algorithm created by the Caversham Project at the University of Otago. It implements the Caverphone 2.0
algorithm:Constructor and Description |
---|
Caverphone()
Deprecated.
Creates an instance of the Caverphone encoder
|
Modifier and Type | Method and Description |
---|---|
String |
caverphone(String source)
Deprecated.
Encodes the given String into a Caverphone value.
|
Object |
encode(Object obj)
Deprecated.
Encodes an Object using the caverphone algorithm.
|
String |
encode(String str)
Deprecated.
Encodes a String using the Caverphone algorithm.
|
boolean |
isCaverphoneEqual(String str1,
String str2)
Deprecated.
Tests if the caverphones of two strings are identical.
|
public Caverphone()
public String caverphone(String source)
source
- String the source stringpublic Object encode(Object obj) throws EncoderException
encode
in interface Encoder
obj
- Object to encodeEncoderException
- if the parameter supplied is not of type java.lang.Stringpublic String encode(String str)
encode
in interface StringEncoder
str
- String object to encodepublic boolean isCaverphoneEqual(String str1, String str2)
str1
- First of two strings to comparestr2
- Second of two strings to comparetrue
if the caverphones of these strings are identical, false
otherwise.Copyright © 2002–2013 The Apache Software Foundation. All rights reserved.