Interface NumberUtils


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

    • convertBinaryToOctal

      String convertBinaryToOctal(String binaryString)
      Parameters:
      binaryString - the binary string to convert
      Returns:
      string containing the octal representation
    • convertBinaryToOctal

      String convertBinaryToOctal(ByteArray byteArray)
      Parameters:
      byteArray - the byte array to convert
      Returns:
      string containing the octal representation
    • convertBinaryToDecimal

      String convertBinaryToDecimal(String binaryString)
      Parameters:
      binaryString - the binary string to convert
      Returns:
      string containing the decimal representation
    • convertBinaryToDecimal

      String convertBinaryToDecimal(ByteArray byteArray)
      Parameters:
      byteArray - the byte array to convert
      Returns:
      string containing the decimal representation
    • convertBinaryToHex

      String convertBinaryToHex(String binaryString)
      Parameters:
      binaryString - the binary string to convert
      Returns:
      string containing the hex representation
    • convertBinaryToHex

      String convertBinaryToHex(ByteArray byteArray)
      Parameters:
      byteArray - the byte array to convert
      Returns:
      string containing the hex representation
    • convertOctalToBinary

      String convertOctalToBinary(String octalString)
      Parameters:
      octalString - the octal string to convert
      Returns:
      string containing the binary representation
    • convertOctalToDecimal

      String convertOctalToDecimal(String octalString)
      Parameters:
      octalString - the octal string to convert
      Returns:
      string containing the decimal representation
    • convertOctalToHex

      String convertOctalToHex(String octalString)
      Parameters:
      octalString - the octal string to convert
      Returns:
      string containing the hex representation
    • convertDecimalToBinary

      String convertDecimalToBinary(String decimalString)
      Parameters:
      decimalString - the decimal string to convert
      Returns:
      string containing the binary representation
    • convertDecimalToOctal

      String convertDecimalToOctal(String decimalString)
      Parameters:
      decimalString - the decimal string to convert
      Returns:
      string containing the octal representation
    • convertDecimalToHex

      String convertDecimalToHex(String decimalString)
      Parameters:
      decimalString - the decimal string to convert
      Returns:
      string containing the hex representation
    • convertHexToBinary

      String convertHexToBinary(String hexString)
      Parameters:
      hexString - the hex string to convert
      Returns:
      string containing the binary representation
    • convertHexToOctal

      String convertHexToOctal(String hexString)
      Parameters:
      hexString - the hex string to convert
      Returns:
      string containing the octal representation
    • convertHexToDecimal

      String convertHexToDecimal(String hexString)
      Parameters:
      hexString - the hex string to convert
      Returns:
      string containing the decimal representation
    • convertBinary

      String convertBinary(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

      String convertOctal(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

      String convertDecimal(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

      String convertHex(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