Contents
- Description
- Nested Class Summary
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- getDefaultValue()
- setDefaultValue(V)
- getDelegate()
- size()
- isEmpty()
- containsKey(Object)
- containsValue(Object)
- get(Object)
- put(K, V)
- remove(Object)
- putAll(Map)
- clear()
- keySet()
- values()
- entrySet()
- equals(Object)
- hashCode()
- getOrDefault(Object, V)
- forEach(BiConsumer)
- replaceAll(BiFunction)
- putIfAbsent(K, V)
- remove(Object, Object)
- replace(K, V, V)
- replace(K, V)
- computeIfAbsent(K, Function)
- computeIfPresent(K, BiFunction)
- compute(K, BiFunction)
- merge(K, V, BiFunction)
- toString()
Class DefaultMap<K,V>
java.lang.Object
com.hypixel.hytale.common.map.DefaultMap<K,V>
- All Implemented Interfaces:
Map<K,V>
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultMap(V defaultValue) DefaultMap(V defaultValue, Map<K, V> delegate) DefaultMap(V defaultValue, Map<K, V> delegate, boolean allowReplacing) DefaultMap(V defaultValue, Map<K, V> delegate, boolean allowReplacing, boolean replaceNullWithDefault) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanvoidforEach(BiConsumer<? super K, ? super V> action) getOrDefault(Object key, V defaultValue) inthashCode()booleanisEmpty()keySet()voidputIfAbsent(K key, V value) booleanbooleanvoidreplaceAll(BiFunction<? super K, ? super V, ? extends V> function) voidsetDefaultValue(V defaultValue) intsize()toString()values()
-
Constructor Details
-
DefaultMap
-
DefaultMap
-
DefaultMap
-
DefaultMap
-
-
Method Details
-
getDefaultValue
-
setDefaultValue
-
getDelegate
-
size
-
isEmpty
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
get
-
put
-
remove
-
putAll
-
clear
-
keySet
-
values
-
entrySet
-
equals
-
hashCode
-
getOrDefault
-
forEach
-
replaceAll
- Specified by:
replaceAllin interfaceMap<K,V>
-
putIfAbsent
-
remove
-
replace
-
replace
-
computeIfAbsent
-
computeIfPresent
@Nullable public V computeIfPresent(K key, @Nonnull BiFunction<? super K, ? super V, ? extends V> remappingFunction) - Specified by:
computeIfPresentin interfaceMap<K,V>
-
compute
-
merge
-
toString
-