@UsesJava8 class YearMonthFormatter extends java.lang.Object implements Formatter<java.time.YearMonth>
Formatter
implementation for a JSR-310 YearMonth
,
following JSR-310's parsing rules for a YearMonth.YearMonth.parse(java.lang.CharSequence)
Constructor and Description |
---|
YearMonthFormatter() |
Modifier and Type | Method and Description |
---|---|
java.time.YearMonth |
parse(java.lang.String text,
java.util.Locale locale)
Parse a text String to produce a T.
|
java.lang.String |
print(java.time.YearMonth object,
java.util.Locale locale)
Print the object of type T for display.
|
public java.time.YearMonth parse(java.lang.String text, java.util.Locale locale) throws java.text.ParseException
Parser
public java.lang.String print(java.time.YearMonth object, java.util.Locale locale)
Printer