Class ReflexiveMapView<T>
- java.lang.Object
-
- java.util.AbstractMap<T,T>
-
- net.automatalib.common.smartcollection.ReflexiveMapView<T>
-
- Type Parameters:
T
- element type
- All Implemented Interfaces:
Map<T,T>
public class ReflexiveMapView<T> extends AbstractMap<T,T>
An immutable, reflexiveMap
view for a given set of elements. This map is backed by the given set elements, i.e. changes to the passed sets are propagated to this map.
-
-
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 ReflexiveMapView(Set<@KeyFor("this") T> domain)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsKey(@Nullable Object key)
boolean
containsValue(@Nullable Object value)
Set<Map.Entry<@KeyFor("this") T,T>>
entrySet()
@Nullable T
get(@Nullable Object key)
Set<@KeyFor("this") T>
keySet()
Set<T>
values()
-
Methods inherited from class java.util.AbstractMap
clear, clone, equals, hashCode, isEmpty, put, putAll, remove, size, 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
-
containsValue
public boolean containsValue(@Nullable Object value)
- Specified by:
containsValue
in interfaceMap<T,T>
- Overrides:
containsValue
in classAbstractMap<T,T>
-
containsKey
public boolean containsKey(@Nullable Object key)
- Specified by:
containsKey
in interfaceMap<T,T>
- Overrides:
containsKey
in classAbstractMap<T,T>
-
-