Interface DateFormatter
public interface DateFormatter
Interface to convert from and to
TemporalAccessor
s.- Since:
- 4.2
- Author:
- Peter-Josef Meisch
-
Method Summary
Modifier and TypeMethodDescriptionformat
(TemporalAccessor accessor) Formats aTemporalAccessor
into a String.<T extends TemporalAccessor>
TParses a String into aTemporalAccessor
.
-
Method Details
-
format
Formats aTemporalAccessor
into a String.- Parameters:
accessor
- must not be null- Returns:
- the formatted String
-
parse
Parses a String into aTemporalAccessor
.- Type Parameters:
T
- theTemporalAccessor
implementation- Parameters:
input
- the String to parse, must not be nulltype
- the class of T- Returns:
- the parsed instance
-