java.lang.Object
java.util.AbstractMap<K,V>
org.jhotdraw8.icollection.facade.MapFacade<K,V>
- Type Parameters:
K- the key typeV- the value type
- All Implemented Interfaces:
Map<K,V>
- Direct Known Subclasses:
SequencedMapFacade
Provides a
Map facade to a set of Map functions.- Author:
- Werner Randelshofer
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final @NonNull BiFunction<K, V, V> protected final @NonNull IntSupplier -
Constructor Summary
ConstructorsConstructorDescriptionMapFacade(@NonNull Supplier<Iterator<Map.Entry<K, V>>> iteratorFunction, @NonNull Supplier<Spliterator<Map.Entry<K, V>>> spliteratorFunction, @NonNull IntSupplier sizeFunction, @NonNull Predicate<Object> containsKeyFunction, @NonNull Function<K, V> getFunction, @Nullable Runnable clearFunction, @Nullable Function<Object, V> removeFunction, @Nullable BiFunction<K, V, V> putFunction) MapFacade(@NonNull ReadOnlyMap<K, V> m) -
Method Summary
Methods inherited from class java.util.AbstractMap
clear, clone, containsValue, equals, hashCode, isEmpty, keySet, putAll, 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, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
iteratorFunction
-
spliteratorFunction
-
sizeFunction
-
containsKeyFunction
-
clearFunction
-
removeFunction
-
getFunction
-
putFunction
-
-
Constructor Details
-
MapFacade
-
MapFacade
-
MapFacade
public MapFacade(@NonNull Supplier<Iterator<Map.Entry<K, V>>> iteratorFunction, @NonNull Supplier<Spliterator<Map.Entry<K, V>>> spliteratorFunction, @NonNull IntSupplier sizeFunction, @NonNull Predicate<Object> containsKeyFunction, @NonNull Function<K, V> getFunction, @Nullable Runnable clearFunction, @Nullable Function<Object, V> removeFunction, @Nullable BiFunction<K, V, V> putFunction)
-
-
Method Details
-
get
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V> - Overrides:
containsKeyin classAbstractMap<K,V>
-
size
public int size() -
containsEntry
-
entrySet
-
getOrDefault
-
remove
-
put
-