Class BooleanMap<V>
- java.lang.Object
-
- java.util.AbstractMap<Boolean,V>
-
- de.learnlib.datastructure.discriminationtree.model.BooleanMap<V>
-
- Type Parameters:
V- value type
public class BooleanMap<V> extends AbstractMap<Boolean,V>
Primitive implementation for boolean maps.
-
-
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 Constructor Description BooleanMap()BooleanMap(V falseValue, V trueValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<Boolean,V>>entrySet()Vget(boolean key)@Nullable Vget(Object key)booleanisEmpty()Set<Boolean>keySet()Vput(boolean key, V value)Vput(Boolean key, V value)voidputAll(Map<? extends Boolean,? extends V> m)@Nullable Vremove(Object key)intsize()Collection<V>values()-
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<Boolean,V>- Overrides:
containsValuein classAbstractMap<Boolean,V>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<Boolean,V>- Overrides:
containsKeyin classAbstractMap<Boolean,V>
-
get
public V get(boolean key)
-
clear
public void clear()
-
values
public Collection<V> values()
-
-