Class NumberUtils
java.lang.Object
io.github.syst3ms.skriptparser.util.NumberUtils
Utility functions for numbers that don't have to do with math.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NumberUtils
public NumberUtils()
-
-
Method Details
-
parseInt
Parse a string as an integer. Note that the parsed string is expected to be a parsable integer. Therefore it will only take care of overflow situations.- Parameters:
str- the string to parse- Returns:
- the parsed integer
-
parseLong
Parse a string as a long. Note that the parsed string is expected to be a parsable long. Therefore it will only take care of overflow situations.- Parameters:
str- the string to parse- Returns:
- the parsed integer
-