Class FreezableMap<K,V>
java.lang.Object
com.blamejared.contenttweaker.core.util.FreezableMap<K,V>
- All Implemented Interfaces:
Map<K,V>
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()computeIfAbsent(K key, @NotNull Function<? super K, ? extends V> mappingFunction) computeIfPresent(K key, @NotNull BiFunction<? super K, ? super V, ? extends V> remappingFunction) booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()voidforEach(BiConsumer<? super K, ? super V> action) voidfreeze()getOrDefault(Object key, V defaultValue) booleanisEmpty()keySet()static <K,V> FreezableMap<K, V> of()static <K,V> FreezableMap<K, V> static <K,V> FreezableMap<K, V> voidputIfAbsent(K key, V value) booleanbooleanvoidreplaceAll(BiFunction<? super K, ? super V, ? extends V> function) intsize()@NotNull Collection<V>values()
-
Method Details
-
of
-
of
-
of
-
freeze
public void freeze() -
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
getOrDefault
- Specified by:
getOrDefaultin interfaceMap<K,V>
-
forEach
-
replaceAll
- Specified by:
replaceAllin interfaceMap<K,V>
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceMap<K,V>
-
remove
-
replace
-
replace
-
computeIfAbsent
- Specified by:
computeIfAbsentin interfaceMap<K,V>
-
computeIfPresent
public V computeIfPresent(K key, @NotNull @NotNull BiFunction<? super K, ? super V, ? extends V> remappingFunction) - Specified by:
computeIfPresentin interfaceMap<K,V>
-
compute
-
merge
-