Interface StringParser<T>

Type Parameters:
T - The class that this StringParser turns 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.

@FunctionalInterface public interface StringParser<T>
A class that represents a function that parses a String into another object. See parse(String)
  • Method Summary

    Modifier and Type
    Method
    Description
    A method that turns a String into an object of type T.
  • 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.