Class InstantFormatter

    • Method Detail

      • parse

        public Instant parse​(String text,
                             Locale locale)
                      throws ParseException
        Description copied from interface: Parser
        Parse a text String to produce a T.
        Specified by:
        parse in interface Parser<Instant>
        Parameters:
        text - the text string
        locale - the current user locale
        Returns:
        an instance of T
        Throws:
        ParseException - when a parse exception occurs in a java.text parsing library
      • print

        public String print​(Instant object,
                            Locale locale)
        Description copied from interface: Printer
        Print the object of type T for display.
        Specified by:
        print in interface Printer<Instant>
        Parameters:
        object - the instance to print
        locale - the current user locale
        Returns:
        the printed text string