Class InstantParser

java.lang.Object
io.github.mmm.base.temporal.InstantParser
All Implemented Interfaces:
FromStringParser<Instant>

public final class InstantParser extends Object implements FromStringParser<Instant>
Since:
1.0.0
See Also:
  • Method Details

    • parse

      public Instant parse(String instant)
      Description copied from interface: FromStringParser
      Parses the given String to the type handled by this parser but efficiently returns null if the syntax does not match. This allows to detect the format without wasting much performance.
      Specified by:
      parse in interface FromStringParser<Instant>
      Parameters:
      instant - the String to parse. May or may not be in the format expected for the type of this parser.
      Returns:
      the given String parsed to the type handled by this parser or null if the syntax does not match.
    • get

      public static InstantParser get()
      Returns:
      the singleton instance of this FromStringParser for Instant.