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