Package org.apache.johnzon.mapper.map
Class LazyConverterMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.concurrent.ConcurrentHashMap<AdapterKey,Adapter<?,?>>
-
- org.apache.johnzon.mapper.map.LazyConverterMap
-
- All Implemented Interfaces:
Serializable
,ConcurrentMap<AdapterKey,Adapter<?,?>>
,Map<AdapterKey,Adapter<?,?>>
public class LazyConverterMap extends ConcurrentHashMap<AdapterKey,Adapter<?,?>>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.concurrent.ConcurrentHashMap
ConcurrentHashMap.KeySetView<K extends Object,V extends Object>
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description private DateTimeFormatter
dateTimeFormatter
private static Adapter<?,?>
NO_ADAPTER
private boolean
useBigDecimalStringAdapter
private boolean
useBigIntegerStringAdapter
private boolean
useShortISO8601Format
-
Constructor Summary
Constructors Constructor Description LazyConverterMap()
-
Method Summary
-
Methods inherited from class java.util.concurrent.ConcurrentHashMap
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
-
Methods inherited from class java.util.AbstractMap
clone
-
-
-
-
Field Detail
-
NO_ADAPTER
private static final Adapter<?,?> NO_ADAPTER
-
useShortISO8601Format
private boolean useShortISO8601Format
-
dateTimeFormatter
private DateTimeFormatter dateTimeFormatter
-
useBigIntegerStringAdapter
private boolean useBigIntegerStringAdapter
-
useBigDecimalStringAdapter
private boolean useBigDecimalStringAdapter
-
-
Method Detail
-
setUseShortISO8601Format
public void setUseShortISO8601Format(boolean useShortISO8601Format)
-
setDateTimeFormatter
public void setDateTimeFormatter(DateTimeFormatter dateTimeFormatter)
-
setUseBigDecimalStringAdapter
public void setUseBigDecimalStringAdapter(boolean useBigDecimalStringAdapter)
-
setUseBigIntegerStringAdapter
public void setUseBigIntegerStringAdapter(boolean useBigIntegerStringAdapter)
-
get
public Adapter<?,?> get(Object key)
- Specified by:
get
in interfaceMap<AdapterKey,Adapter<?,?>>
- Overrides:
get
in classConcurrentHashMap<AdapterKey,Adapter<?,?>>
-
entrySet
public Set<Map.Entry<AdapterKey,Adapter<?,?>>> entrySet()
- Specified by:
entrySet
in interfaceMap<AdapterKey,Adapter<?,?>>
- Overrides:
entrySet
in classConcurrentHashMap<AdapterKey,Adapter<?,?>>
-
adapterKeys
public Set<AdapterKey> adapterKeys()
-
doLazyLookup
private Adapter<?,?> doLazyLookup(AdapterKey key)
-
addOffsetDateTimeConverter
private Adapter<?,?> addOffsetDateTimeConverter(AdapterKey key)
-
addZonedDateTimeConverter
private Adapter<?,?> addZonedDateTimeConverter(AdapterKey key)
-
addLocalDateTimeConverter
private Adapter<?,?> addLocalDateTimeConverter(AdapterKey key)
-
addLocalDateConverter
private Adapter<?,?> addLocalDateConverter(AdapterKey key)
-
addInstantConverter
private Adapter<?,?> addInstantConverter(AdapterKey key)
-
addGregorianCalendar
private Adapter<?,?> addGregorianCalendar(AdapterKey key)
-
addCalendarConverter
private Adapter<?,?> addCalendarConverter(AdapterKey key)
-
addDateConverter
private Adapter<?,?> addDateConverter(AdapterKey key)
-
parseZonedDateTime
private static ZonedDateTime parseZonedDateTime(String text, DateTimeFormatter formatter, ZoneId defaultZone)
-
checkForDeprecatedTimeZone
private static void checkForDeprecatedTimeZone(String text)
-
hasTime
private boolean hasTime(Calendar instance)
-
fromCalendar
private <T extends Calendar> T fromCalendar(String text, Function<ZonedDateTime,T> calendarSupplier)
-
add
private Adapter<?,?> add(AdapterKey key, Adapter<?,?> converter)
-
-