Class CustomValueMap<DATA extends Enum<DATA> & ICustomValue>
java.lang.Object
org.qiunet.utils.collection.custom.CustomValueMap<DATA>
使用ICustomValue 的Map
- Author:
- qiunet 2020-12-25 11:58
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clone()<T> TcomputeIfAbsent(DATA key) 没有使用默认值创建一个booleancontainsKey(DATA key) voidforEach(BiConsumer<DATA, Object> consumer) <T> T<T> TbooleanisEmpty()keySet()void从字符串加载Map<T> T<T> Tintsize()转成可以持久化的字符串toString()
-
Constructor Details
-
CustomValueMap
-
-
Method Details
-
toDbString
转成可以持久化的字符串- Returns:
-
parse
从字符串加载Map- Parameters:
val- map的字符串内容
-
toString
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
-
get
-
get
-
computeIfAbsent
没有使用默认值创建一个- Type Parameters:
T-- Parameters:
key-- Returns:
-
put
-
remove
-
clear
public void clear() -
keySet
-
forEach
-
clone
-