| Constructor and Description |
|---|
DurationFormatter() |
| Modifier and Type | Method and Description |
|---|---|
Duration |
parse(java.lang.String text,
java.util.Locale locale)
Parse a text String to produce a T.
|
java.lang.String |
print(Duration object,
java.util.Locale locale)
Print the object of type T for display.
|
public Duration parse(java.lang.String text,
java.util.Locale locale)
throws java.text.ParseException
Parserpublic java.lang.String print(Duration object,
java.util.Locale locale)
Printer