Caverphone2, will be removed in 2.0.public class Caverphone extends java.lang.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:| 构造器和说明 |
|---|
Caverphone()
已过时。
Creates an instance of the Caverphone encoder
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
caverphone(java.lang.String source)
已过时。
Encodes the given String into a Caverphone value.
|
java.lang.Object |
encode(java.lang.Object pObject)
已过时。
Encodes an Object using the caverphone algorithm.
|
java.lang.String |
encode(java.lang.String pString)
已过时。
Encodes a String using the Caverphone algorithm.
|
boolean |
isCaverphoneEqual(java.lang.String str1,
java.lang.String str2)
已过时。
Tests if the caverphones of two strings are identical.
|
public java.lang.String caverphone(java.lang.String source)
source - String the source stringpublic java.lang.Object encode(java.lang.Object pObject)
throws EncoderException
encode 在接口中 EncoderpObject - Object to encodeEncoderException - if the parameter supplied is not of category java.lang.Stringpublic java.lang.String encode(java.lang.String pString)
encode 在接口中 StringEncoderpString - String object to encodepublic boolean isCaverphoneEqual(java.lang.String str1,
java.lang.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.