Class FlagMap<K>
java.lang.Object
java.util.AbstractMap<K,Boolean>
java.util.HashMap<K,Boolean>
org.ampere.base.util.SMap<K,Boolean>
org.ampere.base.util.FlagMap<K>
- Type Parameters:
K- key value as String of Integer
- All Implemented Interfaces:
Serializable,Cloneable,Map<K,Boolean>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
FlagMap
-
FlagMap
-
-
Method Details
-
build
-
build
-
selected
-
isSelected
test if an input key is selected or not- Type Parameters:
K- type of the map- Parameters:
source- map to be testedkey- input key- Returns:
- true if the key is selected
-
add
-
getSelected
-