Package co.aikar.util
Interface DelegatingMap<K,V>
-
- All Superinterfaces:
Map<K,V>
public interface DelegatingMap<K,V> extends Map<K,V>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclear()default Vcompute(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)default VcomputeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)default VcomputeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)default booleancontainsKey(Object key)default booleancontainsValue(Object value)Map<K,V>delegate(boolean isReadOnly)default @NotNull Set<Map.Entry<K,V>>entrySet()default voidforEach(BiConsumer<? super K,? super V> action)default Vget(Object key)default VgetOrDefault(Object key, V defaultValue)default booleanisEmpty()default @NotNull Set<K>keySet()default Vmerge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction)default Vput(K key, V value)default voidputAll(@NotNull Map<? extends K,? extends V> m)default VputIfAbsent(K key, V value)default Vremove(Object key)default booleanremove(Object key, Object value)default Vreplace(K key, V value)default booleanreplace(K key, V oldValue, V newValue)default voidreplaceAll(BiFunction<? super K,? super V,? extends V> function)default intsize()default @NotNull Collection<V>values()
-
-
-
Method Detail
-
containsKey
default boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
default boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<K,V>
-
getOrDefault
default V getOrDefault(Object key, V defaultValue)
- Specified by:
getOrDefaultin interfaceMap<K,V>
-
forEach
default void forEach(BiConsumer<? super K,? super V> action)
-
replaceAll
default void replaceAll(BiFunction<? super K,? super V,? extends V> function)
- Specified by:
replaceAllin interfaceMap<K,V>
-
putIfAbsent
@Nullable default V putIfAbsent(K key, V value)
- Specified by:
putIfAbsentin interfaceMap<K,V>
-
computeIfAbsent
default V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)
- Specified by:
computeIfAbsentin interfaceMap<K,V>
-
computeIfPresent
default V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
- Specified by:
computeIfPresentin interfaceMap<K,V>
-
-