java.lang.Object
io.github.grumpystuff.grumpyrest.request.stringparser.standard.StringFromStringParser
All Implemented Interfaces:
FromStringParser

public final class StringFromStringParser extends Object implements FromStringParser
Returns the argument text as a String without any actual parsing.
  • Constructor Details

    • StringFromStringParser

      public StringFromStringParser()
      Constructor.
  • Method Details

    • supportsType

      public boolean supportsType(Type type)
      Description copied from interface: FromStringParser
      Checks if this parser supports the specified type.
      Specified by:
      supportsType in interface FromStringParser
      Parameters:
      type - the type to check
      Returns:
      true if supported, false if not
    • parseFromString

      public Object parseFromString(String s, Type type)
      Description copied from interface: FromStringParser
      Parses a value from a string.
      Specified by:
      parseFromString in interface FromStringParser
      Parameters:
      s - the string to parse
      type - the type to parse as
      Returns:
      the parsed value