org.springframework.format

Interface Parser<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      T parse(java.lang.String text, java.util.Locale locale)
      Parse a text String to produce a T.
    • Method Detail

      • parse

        T parse(java.lang.String text,
                java.util.Locale locale)
         throws java.text.ParseException
        Parse a text String to produce a T.
        Parameters:
        text - the text string
        locale - the current user locale
        Returns:
        an instance of T
        Throws:
        java.text.ParseException - when a parse exception occurs in a java.text parsing library
        java.lang.IllegalArgumentException - when a parse exception occurs