Class ParserParameter<T>

java.lang.Object
org.incendo.cloud.parser.ParserParameter<T>
Type Parameters:
T - Type required by the parameter

@API(status=STABLE) public class ParserParameter<T> extends Object
Parser parameter used when retrieving parsers from the ParserRegistry
  • Constructor Details

    • ParserParameter

      public ParserParameter(@NonNull String key, @NonNull TypeToken<T> expectedType)
      Create a new parser parameter
      Parameters:
      key - Parameter key
      expectedType - Type that is expected to be mapped to this parameter
  • Method Details

    • key

      public @NonNull String key()
      Returns the key that identifies the parameter.
      Returns:
      parameter key
    • expectedType

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

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object