public final class Values
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
toBoolean(@NotNull java.lang.String text)
Return a boolean interpretation of the given
text . |
static double |
toNumber(@NotNull java.lang.String text)
Return a number interpretation of the given
text . |
@Contract(pure=true) public static boolean toBoolean(@NotNull @NotNull java.lang.String text)
text
.text
- the text to get a boolean interpretation for.text
.java.lang.NullPointerException
- if the given text
is null.@Contract(pure=true) public static double toNumber(@NotNull @NotNull java.lang.String text)
text
.text
- the text to get a number interpretation for.text
.java.lang.NullPointerException
- if the given text
is null.java.lang.NumberFormatException
- if the given text
cannot be interpreted as
number.