Printer implementation for a JSR-310 java.time.temporal.TemporalAccessor ,
using a java.time.format.DateTimeFormatter ) (the contextual one, if available).
DateTimeContextHolder#getFormatter, java.time.format.DateTimeFormatter#format(java.time.temporal.TemporalAccessor)
| Modifier and Type | Field and Description |
|---|---|
| private final DateTimeFormatter |
| Access | Constructor and Description |
|---|---|
| public | TemporalAccessorPrinter(DateTimeFormatter
the base DateTimeFormatter instance formatter)Create a new TemporalAccessorPrinter. |
| Modifier and Type | Method and Description |
|---|---|
| public String | print(TemporalAccessor
the instance to print partial, Locale the current user locale locale)Implements org. |
| formatter | back to summary |
|---|---|
| private final DateTimeFormatter formatter | |
| TemporalAccessorPrinter | back to summary |
|---|---|
| public TemporalAccessorPrinter(DateTimeFormatter formatter) Create a new TemporalAccessorPrinter.
| |
| back to summary | |
|---|---|
| public String print(TemporalAccessor partial, Locale locale) Implements org. Doc from org. Print the object of type T for display.
| |