public class LazyConverterMap extends ConcurrentHashMap<AdapterKey,Adapter<?,?>>
ConcurrentHashMap.KeySetView<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
private DateTimeFormatter |
dateTimeFormatter |
private static Adapter<?,?> |
NO_ADAPTER |
private boolean |
useShortISO8601Format |
Constructor and Description |
---|
LazyConverterMap() |
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, values
clone
private static final Adapter<?,?> NO_ADAPTER
private boolean useShortISO8601Format
private DateTimeFormatter dateTimeFormatter
public void setUseShortISO8601Format(boolean useShortISO8601Format)
public void setDateTimeFormatter(DateTimeFormatter dateTimeFormatter)
public Adapter<?,?> get(Object key)
get
in interface Map<AdapterKey,Adapter<?,?>>
get
in class ConcurrentHashMap<AdapterKey,Adapter<?,?>>
public Set<Map.Entry<AdapterKey,Adapter<?,?>>> entrySet()
entrySet
in interface Map<AdapterKey,Adapter<?,?>>
entrySet
in class ConcurrentHashMap<AdapterKey,Adapter<?,?>>
public Set<AdapterKey> adapterKeys()
private Adapter<?,?> doLazyLookup(AdapterKey key)
private Adapter<?,?> addOffsetDateTimeConverter(AdapterKey key)
private Adapter<?,?> addZonedDateTimeConverter(AdapterKey key)
private Adapter<?,?> addLocalDateTimeConverter(AdapterKey key)
private Adapter<?,?> addLocalDateConverter(AdapterKey key)
private Adapter<?,?> addInstantConverter(AdapterKey key)
private Adapter<?,?> addGregorianCalendar(AdapterKey key)
private Adapter<?,?> addCalendarConverter(AdapterKey key)
private Adapter<?,?> addDateConverter(AdapterKey key)
private static ZonedDateTime parseZonedDateTime(String text, DateTimeFormatter formatter, ZoneId defaultZone)
private static void checkForDeprecatedTimeZone(String text)
private boolean hasTime(Calendar instance)
private <T extends Calendar> T fromCalendar(String text, Function<ZonedDateTime,T> calendarSupplier)
private Adapter<?,?> add(AdapterKey key, Adapter<?,?> converter)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.