Package org.aksw.commons.accessors
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 java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
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 java.util.AbstractMap
clear, clone, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, toString, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.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
public int size() -
main
-