K
- 键类型V
- 值类型public class TolerantMap<K,V> extends MapWrapper<K,V>
DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR
Constructor and Description |
---|
TolerantMap(int initialCapacity,
float loadFactor,
V defaultValue)
构造
|
TolerantMap(int initialCapacity,
V defaultValue)
构造
|
TolerantMap(Map<K,V> map,
V defaultValue)
构造
|
TolerantMap(V defaultValue)
构造
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
V |
get(Object key) |
int |
hashCode() |
static <K,V> TolerantMap<K,V> |
of(Map<K,V> map,
V defaultValue)
构建TolerantMap
|
String |
toString() |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, getRaw, isEmpty, iterator, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public TolerantMap(V defaultValue)
defaultValue
- 默认值public TolerantMap(int initialCapacity, float loadFactor, V defaultValue)
initialCapacity
- 初始容量loadFactor
- 增长因子defaultValue
- 默认值public TolerantMap(int initialCapacity, V defaultValue)
initialCapacity
- 初始容量defaultValue
- 默认值public static <K,V> TolerantMap<K,V> of(Map<K,V> map, V defaultValue)
K
- 键类型V
- 值类型map
- map实现defaultValue
- 默认值public boolean equals(Object o)
public int hashCode()
public String toString()
toString
in class MapWrapper<K,V>
Copyright © 2024. All rights reserved.