Class LazyMap<K, V, C extends Map<K,V> >
java.lang.Object
java.util.AbstractMap<K,V>
org.aksw.commons.accessors.LazyMap<K,V,C>
- All Implemented Interfaces:
Map<K,V>
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLazyMap(SingleValuedAccessor<C> accessor, Supplier<? extends C> ctor) LazyMap(SingleValuedAccessor<C> accessor, Supplier<? extends C> ctor, boolean setNullOnEmpty) -
Method Summary
Methods inherited from class AbstractMap
clear, clone, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, toString, valuesMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, replace, replace, replaceAll
-
Field Details
-
accessor
-
ctor
-
setNullOnEmpty
protected boolean setNullOnEmpty -
test
-
-
Constructor Details
-
LazyMap
-
LazyMap
public LazyMap(SingleValuedAccessor<C> accessor, Supplier<? extends C> ctor, boolean setNullOnEmpty)
-
-
Method Details
-
put
-
checkUnset
-
remove
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V> - Overrides:
containsKeyin classAbstractMap<K,V>
-
entrySet
-
size
-
main
-