Class ParserParameter<T>

  • Type Parameters:
    T - Type required by the parameter

    public class ParserParameter<T>
    extends java.lang.Object
    Parser parameter used when retrieving parsers from the ParserRegistry
    • Constructor Summary

      Constructors 
      Constructor Description
      ParserParameter​(@NonNull java.lang.String key, @NonNull io.leangen.geantyref.TypeToken<T> expectedType)
      Create a new parser parameter
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      @NonNull io.leangen.geantyref.TypeToken<T> getExpectedType()
      Ge the type that is expected to be mapped to this parameter
      @NonNull java.lang.String getKey()
      Get the parameter key
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ParserParameter

        public ParserParameter​(@NonNull java.lang.String key,
                               @NonNull io.leangen.geantyref.TypeToken<T> expectedType)
        Create a new parser parameter
        Parameters:
        key - Parameter key
        expectedType - Type that is expected to be mapped to this parameter
    • Method Detail

      • getKey

        public @NonNull java.lang.String getKey()
        Get the parameter key
        Returns:
        Parameter key
      • getExpectedType

        public @NonNull io.leangen.geantyref.TypeToken<T> getExpectedType()
        Ge the type that is expected to be mapped to this parameter
        Returns:
        Expected type
      • equals

        public final boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object