Package io.deephaven.function
Class Parse
java.lang.Object
io.deephaven.function.Parse
Functions for parsing strings to primitive values.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Boolean
Parses the string argument as aboolean
.static byte
Parses the string argument as abyte
.static byte
Parses the string argument as abyte
.static double
Parses the string argument as adouble
.static float
parseFloat
(String s) Parses the string argument as afloat
.static int
Parses the string argument as anint
.static int
Parses the string argument as anint
.static long
Parses the string argument as along
.static long
Parses the string argument as along
.static short
parseShort
(String s) Parses the string argument as ashort
.static short
parseShort
(String s, int radix) Parses the string argument as ashort
.static int
Parses the string argument as an unsignedint
.static int
parseUnsignedInt
(String s, int radix) Parses the string argument as an unsignedint
.static long
Parses the string argument as an unsignedlong
.static long
parseUnsignedLong
(String s, int radix) Parses the string argument as an unsignedlong
.
-
Constructor Details
-
Parse
public Parse()
-
-
Method Details
-
parseByte
Parses the string argument as abyte
.- Parameters:
s
- string.- Returns:
- parsed value.
-
parseByte
Parses the string argument as abyte
.- Parameters:
s
- string.radix
- The radix to use in parsings
- Returns:
- parsed value.
-
parseShort
Parses the string argument as ashort
.- Parameters:
s
- string.- Returns:
- parsed value.
-
parseShort
Parses the string argument as ashort
.- Parameters:
s
- string.radix
- The radix to use in parsings
- Returns:
- parsed value.
-
parseInt
Parses the string argument as anint
.- Parameters:
s
- string.- Returns:
- parsed value.
-
parseInt
Parses the string argument as anint
.- Parameters:
s
- string.radix
- The radix to use in parsings
- Returns:
- parsed value.
-
parseUnsignedInt
Parses the string argument as an unsignedint
.- Parameters:
s
- string.- Returns:
- parsed value.
-
parseUnsignedInt
Parses the string argument as an unsignedint
.- Parameters:
s
- string.radix
- The radix to use in parsings
- Returns:
- parsed value.
-
parseLong
Parses the string argument as along
.- Parameters:
s
- string.- Returns:
- parsed value.
-
parseLong
Parses the string argument as along
.- Parameters:
s
- string.radix
- The radix to use in parsings
- Returns:
- parsed value.
-
parseUnsignedLong
Parses the string argument as an unsignedlong
.- Parameters:
s
- string.- Returns:
- parsed value.
-
parseUnsignedLong
Parses the string argument as an unsignedlong
.- Parameters:
s
- string.radix
- The radix to use in parsings
- Returns:
- parsed value.
-
parseDouble
Parses the string argument as adouble
.- Parameters:
s
- string.- Returns:
- parsed value.
-
parseFloat
Parses the string argument as afloat
.- Parameters:
s
- string.- Returns:
- parsed value.
-
parseBoolean
Parses the string argument as aboolean
.- Parameters:
s
- string.- Returns:
- parsed value.
-