public class LazyConverterMap extends java.util.concurrent.ConcurrentHashMap<AdapterKey,Adapter<?,?>>
java.util.concurrent.ConcurrentHashMap.KeySetView<K,V>
Modifier and Type | Field and Description |
---|---|
private java.time.format.DateTimeFormatter |
dateTimeFormatter |
private static Adapter<?,?> |
NO_ADAPTER |
private boolean |
useShortISO8601Format |
Constructor and Description |
---|
LazyConverterMap() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<AdapterKey> |
adapterKeys() |
private Adapter<?,?> |
add(AdapterKey key,
Adapter<?,?> converter) |
private Adapter<?,?> |
addCalendarConverter(AdapterKey key) |
private Adapter<?,?> |
addDateConverter(AdapterKey key) |
private Adapter<?,?> |
addGregorianCalendar(AdapterKey key) |
private Adapter<?,?> |
addInstantConverter(AdapterKey key) |
private Adapter<?,?> |
addLocalDateConverter(AdapterKey key) |
private Adapter<?,?> |
addLocalDateTimeConverter(AdapterKey key) |
private Adapter<?,?> |
addOffsetDateTimeConverter(AdapterKey key) |
private Adapter<?,?> |
addZonedDateTimeConverter(AdapterKey key) |
private static void |
checkForDeprecatedTimeZone(java.lang.String text) |
private Adapter<?,?> |
doLazyLookup(AdapterKey key) |
java.util.Set<java.util.Map.Entry<AdapterKey,Adapter<?,?>>> |
entrySet() |
private <T extends java.util.Calendar> |
fromCalendar(java.lang.String text,
java.util.function.Function<java.time.ZonedDateTime,T> calendarSupplier) |
Adapter<?,?> |
get(java.lang.Object key) |
private boolean |
hasTime(java.util.Calendar instance) |
private static java.time.ZonedDateTime |
parseZonedDateTime(java.lang.String text,
java.time.format.DateTimeFormatter formatter,
java.time.ZoneId defaultZone) |
void |
setDateTimeFormatter(java.time.format.DateTimeFormatter dateTimeFormatter) |
void |
setUseShortISO8601Format(boolean useShortISO8601Format) |
private java.lang.String |
toStringCalendar(java.util.Calendar instance) |
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
private static final Adapter<?,?> NO_ADAPTER
private boolean useShortISO8601Format
private java.time.format.DateTimeFormatter dateTimeFormatter
public void setUseShortISO8601Format(boolean useShortISO8601Format)
public void setDateTimeFormatter(java.time.format.DateTimeFormatter dateTimeFormatter)
public Adapter<?,?> get(java.lang.Object key)
get
in interface java.util.Map<AdapterKey,Adapter<?,?>>
get
in class java.util.concurrent.ConcurrentHashMap<AdapterKey,Adapter<?,?>>
public java.util.Set<java.util.Map.Entry<AdapterKey,Adapter<?,?>>> entrySet()
entrySet
in interface java.util.Map<AdapterKey,Adapter<?,?>>
entrySet
in class java.util.concurrent.ConcurrentHashMap<AdapterKey,Adapter<?,?>>
public java.util.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 java.time.ZonedDateTime parseZonedDateTime(java.lang.String text, java.time.format.DateTimeFormatter formatter, java.time.ZoneId defaultZone)
private static void checkForDeprecatedTimeZone(java.lang.String text)
private java.lang.String toStringCalendar(java.util.Calendar instance)
private boolean hasTime(java.util.Calendar instance)
private <T extends java.util.Calendar> T fromCalendar(java.lang.String text, java.util.function.Function<java.time.ZonedDateTime,T> calendarSupplier)
private Adapter<?,?> add(AdapterKey key, Adapter<?,?> converter)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.