Class ValueParser
java.lang.Object
de.chojo.jdautil.parsing.ValueParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleangetInterval(String timeStampString) Check if a string contains a interval.static OptionalLongParse a string to long.parseBoolean(String bool) Get a boolean as a boolean state.parseBoolean(String bool, String isTrue, String isFalse) Get a boolean as boolean state.parseDouble(String number) Parse a string to double.Parse a string to integer.Parse a string to long.
-
Constructor Details
-
ValueParser
public ValueParser()
-
-
Method Details
-
parseBoolean
-
parseBoolean
-
parseInt
-
parseDouble
-
parseLong
-
getInterval
Check if a string contains a interval.- Parameters:
timeStampString- interval as string- Returns:
- true if the String is a Intervall
-
hexToLong
Parse a string to long.- Parameters:
number- number as string- Returns:
- number or null if parse failed
-