Interface ContextProvider<C>

All Known Implementing Classes:
DefaultContextProvider

public interface ContextProvider<C>
  • Method Summary

    Modifier and Type
    Method
    Description
     
    parse(String menuName, String input)
    Parses a context from an input
  • Method Details

    • getType

      Class<C> getType()
    • parse

      @Nullable C parse(String menuName, String input)
      Parses a context from an input
      Parameters:
      input - The string input to parse, could be something not intended to be parsed as a context
      Returns:
      The parsed context, or null if the input does not belong to the context type