public final class ElasticsearchDateConverter extends Object
Modifier and Type | Method and Description |
---|---|
String |
format(TemporalAccessor accessor)
Formats the given
TemporalAccessor int a String |
static ElasticsearchDateConverter |
of(DateFormat dateFormat)
Creates an ElasticsearchDateConverter for the given
DateFormat . |
static ElasticsearchDateConverter |
of(String pattern)
Creates an ElasticsearchDateConverter for the given pattern.
|
<T extends TemporalAccessor> |
parse(String input,
Class<T> type)
Parses a String into an object
|
public static ElasticsearchDateConverter of(DateFormat dateFormat)
DateFormat
.dateFormat
- must not be @{literal null}public static ElasticsearchDateConverter of(String pattern)
pattern
- must not be nullpublic String format(TemporalAccessor accessor)
TemporalAccessor
int a Stringaccessor
- must not be nullpublic <T extends TemporalAccessor> T parse(String input, Class<T> type)
T
- the class of typeinput
- the String to parse, must not be null.type
- the class to returnCopyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.