Package dev.jorel.commandapi.arguments
Interface StringParser<T>
- Type Parameters:
T- The class that thisStringParserturns strings into.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A class that represents a function that parses a String into another object. See
parse(String)-
Method Summary
-
Method Details
-
parse
A method that turns a String into an object of type T.- Parameters:
s- The String to parse- Returns:
- The resulting parsed object
- Throws:
WrapperCommandSyntaxException- If there is a problem with the syntax of the String that prevents it from being turned into an object of type T.
-