class MonthFormatter extends java.lang.Object implements Formatter<java.time.Month>
Formatter
implementation for a JSR-310 Month
,
resolving a given String against the Month enum values (ignoring case).Month.valueOf(java.lang.String)
Constructor and Description |
---|
MonthFormatter() |
Modifier and Type | Method and Description |
---|---|
java.time.Month |
parse(java.lang.String text,
java.util.Locale locale)
Parse a text String to produce a T.
|
java.lang.String |
print(java.time.Month object,
java.util.Locale locale)
Print the object of type T for display.
|
public java.time.Month parse(java.lang.String text, java.util.Locale locale) throws java.text.ParseException
Parser
public java.lang.String print(java.time.Month object, java.util.Locale locale)
Printer