Package com.gmt2001.datastore2.datatype
Class AbstractDatabaseMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
com.gmt2001.datastore2.datatype.AbstractDatabaseMap<K,V>
- All Implemented Interfaces:
AttachableDataType,Serializable,Cloneable,Map<K,V>
- Direct Known Subclasses:
PermissionMap
- Author:
- gmt2001
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattach(UpdatableRecord<?> record, int fieldIndex) Attaches thisAttachableDataTypeto a record and field to mark when changedvoidclear()computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) voidputIfAbsent(K key, V value) booleanbooleanvoidreplaceAll(BiFunction<? super K, ? super V, ? extends V> function) Methods inherited from class java.util.HashMap
clone, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
AbstractDatabaseMap
public AbstractDatabaseMap()
-
-
Method Details
-
attach
Description copied from interface:AttachableDataTypeAttaches thisAttachableDataTypeto a record and field to mark when changed- Specified by:
attachin interfaceAttachableDataType- Parameters:
record- the record whichis storing this mapfieldIndex- the field index where this map is located in the record
-
clear
public void clear() -
put
-
putAll
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceMap<K,V> - Overrides:
putIfAbsentin classHashMap<K,V>
-
remove
-
replace
-
compute
-
computeIfAbsent
- Specified by:
computeIfAbsentin interfaceMap<K,V> - Overrides:
computeIfAbsentin classHashMap<K,V>
-
merge
-
remove
-
replace
-
replaceAll
- Specified by:
replaceAllin interfaceMap<K,V> - Overrides:
replaceAllin classHashMap<K,V>
-