Class Caverphone

    • Constructor Detail

      • Caverphone

        public Caverphone()
        Deprecated.
        Creates an instance of the Caverphone encoder
    • Method Detail

      • caverphone

        public String caverphone​(String source)
        Deprecated.
        Encodes the given String into a Caverphone value.
        Parameters:
        source - String the source string
        Returns:
        A caverphone code for the given String
      • encode

        public Object encode​(Object obj)
                      throws EncoderException
        Deprecated.
        Encodes an Object using the caverphone algorithm. This method is provided in order to satisfy the requirements of the Encoder interface, and will throw an EncoderException if the supplied object is not of type java.lang.String.
        Specified by:
        encode in interface Encoder
        Parameters:
        obj - Object to encode
        Returns:
        An object (or type java.lang.String) containing the caverphone code which corresponds to the String supplied.
        Throws:
        EncoderException - if the parameter supplied is not of type java.lang.String
      • encode

        public String encode​(String str)
        Deprecated.
        Encodes a String using the Caverphone algorithm.
        Specified by:
        encode in interface StringEncoder
        Parameters:
        str - String object to encode
        Returns:
        The caverphone code corresponding to the String supplied
      • isCaverphoneEqual

        public boolean isCaverphoneEqual​(String str1,
                                         String str2)
        Deprecated.
        Tests if the caverphones of two strings are identical.
        Parameters:
        str1 - First of two strings to compare
        str2 - Second of two strings to compare
        Returns:
        true if the caverphones of these strings are identical, false otherwise.