Class LocalDateTimeParser
java.lang.Object
io.github.grumpystuff.grumpyrest.request.stringparser.standard.LocalDateTimeParser
- All Implemented Interfaces:
FromStringParser
A parser for
LocalDateTime.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseFromString(String s, Type type) Parses a value from a string.booleansupportsType(Type type) Checks if this parser supports the specified type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.grumpystuff.grumpyrest.request.stringparser.FromStringParser
parseFromAbsentString
-
Constructor Details
-
LocalDateTimeParser
public LocalDateTimeParser()Constructor
-
-
Method Details
-
supportsType
Description copied from interface:FromStringParserChecks if this parser supports the specified type.- Specified by:
supportsTypein interfaceFromStringParser- Parameters:
type- the type to check- Returns:
- true if supported, false if not
-
parseFromString
Description copied from interface:FromStringParserParses a value from a string.- Specified by:
parseFromStringin interfaceFromStringParser- Parameters:
s- the string to parsetype- the type to parse as- Returns:
- the parsed value
- Throws:
FromStringParserException- if the string does not conform to the parser's expectation
-