Constructor and Description |
---|
LockableMap(Map<S,P> map) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
P |
compute(S key,
BiFunction<? super S,? super P,? extends P> remappingFunction) |
P |
computeIfAbsent(S key,
Function<? super S,? extends P> mappingFunction) |
P |
computeIfPresent(S key,
BiFunction<? super S,? super P,? extends P> remappingFunction) |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<S,P>> |
entrySet() |
boolean |
equals(Object o) |
void |
forEach(BiConsumer<? super S,? super P> action) |
P |
get(Object key) |
P |
getOrDefault(Object key,
P defaultValue) |
int |
hashCode() |
boolean |
isEmpty() |
Set<S> |
keySet() |
P |
merge(S key,
P value,
BiFunction<? super P,? super P,? extends P> remappingFunction) |
P |
put(S key,
P value) |
void |
putAll(Map<? extends S,? extends P> m) |
P |
putIfAbsent(S key,
P value) |
P |
remove(Object key) |
boolean |
remove(Object key,
Object value) |
P |
replace(S key,
P value) |
boolean |
replace(S key,
P oldValue,
P newValue) |
void |
replaceAll(BiFunction<? super S,? super P,? extends P> function) |
int |
size() |
Collection<P> |
values() |
getDumpRateLimit, withLock
public boolean containsKey(Object key)
containsKey
in interface Map<S,P>
public boolean containsValue(Object value)
containsValue
in interface Map<S,P>
public boolean equals(Object o)
public int hashCode()
public P getOrDefault(Object key, P defaultValue)
getOrDefault
in interface Map<S,P>
public void forEach(BiConsumer<? super S,? super P> action)
public void replaceAll(BiFunction<? super S,? super P,? extends P> function)
replaceAll
in interface Map<S,P>
public P computeIfAbsent(S key, Function<? super S,? extends P> mappingFunction)
computeIfAbsent
in interface Map<S,P>
public P computeIfPresent(S key, BiFunction<? super S,? super P,? extends P> remappingFunction)
computeIfPresent
in interface Map<S,P>
Copyright © 2004–2021. All rights reserved.