Package org.jparsec

Interface TokenMap<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 TokenMap<T>
    Maps a Token to a an object of type T, or null if the token isn't recognized.
    • Method Detail

      • map

        T map​(Token token)
        Transforms token to an instance of T. null is returned if the token isn't recognized.