Class Parse

java.lang.Object
io.deephaven.function.Parse

public class Parse extends Object
Functions for parsing strings to primitive values.
  • Constructor Details

    • Parse

      public Parse()
  • Method Details

    • parseByte

      public static byte parseByte(String s)
      Parses the string argument as a byte.
      Parameters:
      s - string.
      Returns:
      parsed value.
    • parseByte

      public static byte parseByte(String s, int radix)
      Parses the string argument as a byte.
      Parameters:
      s - string.
      radix - The radix to use in parsing s
      Returns:
      parsed value.
    • parseShort

      public static short parseShort(String s)
      Parses the string argument as a short.
      Parameters:
      s - string.
      Returns:
      parsed value.
    • parseShort

      public static short parseShort(String s, int radix)
      Parses the string argument as a short.
      Parameters:
      s - string.
      radix - The radix to use in parsing s
      Returns:
      parsed value.
    • parseInt

      public static int parseInt(String s)
      Parses the string argument as an int.
      Parameters:
      s - string.
      Returns:
      parsed value.
    • parseInt

      public static int parseInt(String s, int radix)
      Parses the string argument as an int.
      Parameters:
      s - string.
      radix - The radix to use in parsing s
      Returns:
      parsed value.
    • parseUnsignedInt

      public static int parseUnsignedInt(String s)
      Parses the string argument as an unsigned int.
      Parameters:
      s - string.
      Returns:
      parsed value.
    • parseUnsignedInt

      public static int parseUnsignedInt(String s, int radix)
      Parses the string argument as an unsigned int.
      Parameters:
      s - string.
      radix - The radix to use in parsing s
      Returns:
      parsed value.
    • parseLong

      public static long parseLong(String s)
      Parses the string argument as a long.
      Parameters:
      s - string.
      Returns:
      parsed value.
    • parseLong

      public static long parseLong(String s, int radix)
      Parses the string argument as a long.
      Parameters:
      s - string.
      radix - The radix to use in parsing s
      Returns:
      parsed value.
    • parseUnsignedLong

      public static long parseUnsignedLong(String s)
      Parses the string argument as an unsigned long.
      Parameters:
      s - string.
      Returns:
      parsed value.
    • parseUnsignedLong

      public static long parseUnsignedLong(String s, int radix)
      Parses the string argument as an unsigned long.
      Parameters:
      s - string.
      radix - The radix to use in parsing s
      Returns:
      parsed value.
    • parseDouble

      public static double parseDouble(String s)
      Parses the string argument as a double.
      Parameters:
      s - string.
      Returns:
      parsed value.
    • parseFloat

      public static float parseFloat(String s)
      Parses the string argument as a float.
      Parameters:
      s - string.
      Returns:
      parsed value.
    • parseBoolean

      public static Boolean parseBoolean(String s)
      Parses the string argument as a boolean.
      Parameters:
      s - string.
      Returns:
      parsed value.