java.lang.Object | |
↳ | com.mongodb.util.StringParseUtil |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Turns a string into a boolean value and returns a default value if unsuccessful.
| |||||||||||
Turns a string into an int and returns a default value if unsuccessful.
| |||||||||||
Turns a string into an int and returns a default value if unsuccessful.
| |||||||||||
Turns a string into an int using a given radix.
| |||||||||||
Turns a string into a Number and returns a default value if unsuccessful.
| |||||||||||
Use Java's "strict parsing" methods Integer.parseInt and Double.parseDouble to parse s "strictly".
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Turns a string into a boolean value and returns a default value if unsuccessful.
s | the string to convert |
---|---|
d | the default value |
Turns a string into an int and returns a default value if unsuccessful.
s | the string to convert |
---|---|
def | the default value |
lastIdx | sets lastIdx[0] to the index of the last digit |
allowNegative | if negative numbers are valid |
Turns a string into an int and returns a default value if unsuccessful.
s | the string to convert |
---|---|
def | the default value |
Turns a string into an int using a given radix.
s | the string to convert |
---|---|
radix | radix to use |
Turns a string into a Number and returns a default value if unsuccessful.
s | the string to convert |
---|---|
def | the default value |
Use Java's "strict parsing" methods Integer.parseInt and Double.parseDouble to parse s "strictly". i.e. if it's neither a double or an integer, fail.
s | the string to convert |
---|