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, reflexiveMapview 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 booleancontainsKey(@Nullable Object key)booleancontainsValue(@Nullable Object value)Set<Map.Entry<@KeyFor("this") T,T>>entrySet()@Nullable Tget(@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:
containsValuein interfaceMap<T,T>- Overrides:
containsValuein classAbstractMap<T,T>
-
containsKey
public boolean containsKey(@Nullable Object key)
- Specified by:
containsKeyin interfaceMap<T,T>- Overrides:
containsKeyin classAbstractMap<T,T>
-
-