- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- cn.mcres.karlatemp.mxlib.util.PermissibleMap<K,V>
-
- 类型参数:
K
- The key type of this mapV
- The value type of this map
- 所有已实现的接口:
Map<K,V>
public class PermissibleMap<K,V> extends AbstractMap<K,V>
Permission access check map- 从以下版本开始:
- 2.2
- 另请参阅:
PCollectionPermission
-
-
构造器概要
构造器 构造器 说明 PermissibleMap(Map<K,V> parent)
PermissibleMap(Map<K,V> parent, Set<PCollectionPermission> permissions)
-
方法概要
修饰符和类型 方法 说明 void
clear()
V
compute(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
V
computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)
V
computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
boolean
containsKey(Object key)
boolean
containsValue(Object value)
@NotNull Set<Map.Entry<K,V>>
entrySet()
boolean
equals(Object o)
void
forEach(BiConsumer<? super K,? super V> action)
V
get(Object key)
V
getOrDefault(Object key, V defaultValue)
int
hashCode()
boolean
isEmpty()
@NotNull Set<K>
keySet()
V
merge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction)
V
put(K key, V value)
void
putAll(Map<? extends K,? extends V> m)
V
putIfAbsent(K key, V value)
V
remove(Object key)
boolean
remove(Object key, Object value)
V
replace(K key, V value)
boolean
replace(K key, V oldValue, V newValue)
void
replaceAll(BiFunction<? super K,? super V,? extends V> function)
int
size()
String
toString()
@NotNull Collection<V>
values()
-
-
-
方法详细资料
-
forEach
public void forEach(BiConsumer<? super K,? super V> action)
-
replaceAll
public void replaceAll(BiFunction<? super K,? super V,? extends V> function)
-
computeIfPresent
public V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
-
merge
public V merge(K key, V value, BiFunction<? super V,? super V,? extends V> remappingFunction)
-
containsValue
public boolean containsValue(Object value)
- 指定者:
containsValue
在接口中Map<K,V>
- 覆盖:
containsValue
在类中AbstractMap<K,V>
-
containsKey
public boolean containsKey(Object key)
- 指定者:
containsKey
在接口中Map<K,V>
- 覆盖:
containsKey
在类中AbstractMap<K,V>
-
values
@NotNull public @NotNull Collection<V> values()
-
toString
public String toString()
- 覆盖:
toString
在类中AbstractMap<K,V>
-
-