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 void
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set<Map.Entry<Boolean,V>>
entrySet()
V
get(boolean key)
@Nullable V
get(Object key)
boolean
isEmpty()
Set<Boolean>
keySet()
V
put(boolean key, V value)
V
put(Boolean key, V value)
void
putAll(Map<? extends Boolean,? extends V> m)
@Nullable V
remove(Object key)
int
size()
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:
containsValue
in interfaceMap<Boolean,V>
- Overrides:
containsValue
in classAbstractMap<Boolean,V>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<Boolean,V>
- Overrides:
containsKey
in classAbstractMap<Boolean,V>
-
get
public V get(boolean key)
-
clear
public void clear()
-
values
public Collection<V> values()
-
-