java.lang.Object
io.github.mmm.base.temporal.InstantParser
- All Implemented Interfaces:
FromStringParser<Instant>
FromStringParser for Instant values.- Since:
- 1.0.0
- See Also:
-
Method Summary
-
Method Details
-
parse
Description copied from interface:FromStringParserParses the givenStringto the type handled by this parser but efficiently returnsnullif the syntax does not match. This allows to detect the format without wasting much performance.- Specified by:
parsein interfaceFromStringParser<Instant>- Parameters:
instant- theStringto parse. May or may not be in the format expected for the type of this parser.- Returns:
- the given
Stringparsed to the type handled by this parser ornullif the syntax does not match.
-
get
- Returns:
- the singleton instance of this
FromStringParserforInstant.
-