Top Description Fields Constructors Methods
org.springframework.format.datetime.standard

public final Class TemporalAccessorPrinter

extends Object
implements Printer<TemporalAccessor>
Class Inheritance
All Implemented Interfaces
org.springframework.format.Printer
Imports
java.time.format.DateTimeFormatter, java.time.temporal.TemporalAccessor, java.util.Locale, org.springframework.format.Printer

Printer implementation for a JSR-310 java.time.temporal.TemporalAccessor, using a java.time.format.DateTimeFormatter) (the contextual one, if available).
Author
Juergen Hoeller
Since
4.0
See Also
DateTimeContextHolder#getFormatter, java.time.format.DateTimeFormatter#format(java.time.temporal.TemporalAccessor)

Field Summary

Modifier and TypeField and Description
private final DateTimeFormatter

Constructor Summary

AccessConstructor and Description
public
TemporalAccessorPrinter(DateTimeFormatter
the base DateTimeFormatter instance
formatter
)

Create a new TemporalAccessorPrinter.

Method Summary

Modifier and TypeMethod and Description
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

formatterback to summary
private final DateTimeFormatter formatter

Constructor Detail

TemporalAccessorPrinterback to summary
public TemporalAccessorPrinter(DateTimeFormatter formatter)

Create a new TemporalAccessorPrinter.

Parameters
formatter:DateTimeFormatter

the base DateTimeFormatter instance

Method Detail