Interface ParseFunction<T>

Type Parameters:
T - The type of result
All Superinterfaces:
Mapper<String,T>
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 ParseFunction<T> extends Mapper<String,T>
A function that parses an input string.
  • Method Details

    • parse

      T parse(String input)
      Parses an input string.
      Parameters:
      input - The input string to parse
      Returns:
      The parsed value, or null if the parsing failed.
    • map

      default T map(String in)
      Description copied from interface: Mapper
      Maps an object.
      Specified by:
      map in interface Mapper<String,T>
      Parameters:
      in - The original object
      Returns:
      The mapped object.
    • parseInt

      static Integer parseInt(String input)
    • parseFloat

      static Float parseFloat(String input)
    • parseBoolean

      static Boolean parseBoolean(String input)