Interface NumberUtils


  • public interface NumberUtils
    This interface gives you access to number string conversion features.
    • Method Detail

      • convertBinaryToOctal

        default java.lang.String convertBinaryToOctal​(java.lang.String binaryString)
        Parameters:
        binaryString - the binary string to convert
        Returns:
        string containing the octal representation
      • convertBinaryToDecimal

        default java.lang.String convertBinaryToDecimal​(java.lang.String binaryString)
        Parameters:
        binaryString - the binary string to convert
        Returns:
        string containing the decimal representation
      • convertBinaryToHex

        default java.lang.String convertBinaryToHex​(java.lang.String binaryString)
        Parameters:
        binaryString - the binary string to convert
        Returns:
        string containing the hex representation
      • convertOctalToBinary

        default java.lang.String convertOctalToBinary​(java.lang.String octalString)
        Parameters:
        octalString - the octal string to convert
        Returns:
        string containing the binary representation
      • convertOctalToDecimal

        default java.lang.String convertOctalToDecimal​(java.lang.String octalString)
        Parameters:
        octalString - the octal string to convert
        Returns:
        string containing the decimal representation
      • convertOctalToHex

        default java.lang.String convertOctalToHex​(java.lang.String octalString)
        Parameters:
        octalString - the octal string to convert
        Returns:
        string containing the hex representation
      • convertDecimalToBinary

        default java.lang.String convertDecimalToBinary​(java.lang.String decimalString)
        Parameters:
        decimalString - the decimal string to convert
        Returns:
        string containing the binary representation
      • convertDecimalToOctal

        default java.lang.String convertDecimalToOctal​(java.lang.String decimalString)
        Parameters:
        decimalString - the decimal string to convert
        Returns:
        string containing the octal representation
      • convertDecimalToHex

        default java.lang.String convertDecimalToHex​(java.lang.String decimalString)
        Parameters:
        decimalString - the decimal string to convert
        Returns:
        string containing the hex representation
      • convertHexToBinary

        default java.lang.String convertHexToBinary​(java.lang.String hexString)
        Parameters:
        hexString - the hex string to convert
        Returns:
        string containing the binary representation
      • convertHexToOctal

        default java.lang.String convertHexToOctal​(java.lang.String hexString)
        Parameters:
        hexString - the hex string to convert
        Returns:
        string containing the octal representation
      • convertHexToDecimal

        default java.lang.String convertHexToDecimal​(java.lang.String hexString)
        Parameters:
        hexString - the hex string to convert
        Returns:
        string containing the decimal representation
      • convertBinary

        java.lang.String convertBinary​(java.lang.String binaryString,
                                       int radix)
        Parameters:
        binaryString - the binary string to convert
        radix - the radix to convert to
        Returns:
        string containing the representation in the specified radix
      • convertOctal

        java.lang.String convertOctal​(java.lang.String octalString,
                                      int radix)
        Parameters:
        octalString - the octal string to convert
        radix - the radix to convert to
        Returns:
        string containing the representation in the specified radix
      • convertDecimal

        java.lang.String convertDecimal​(java.lang.String decimalString,
                                        int radix)
        Parameters:
        decimalString - the decimal string to convert
        radix - the radix to convert to
        Returns:
        string containing the representation in the specified radix
      • convertHex

        java.lang.String convertHex​(java.lang.String hexString,
                                    int radix)
        Parameters:
        hexString - the hex string to convert
        radix - the radix to convert to
        Returns:
        string containing the representation in the specified radix