Class Bindings
java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingMap<Bindings.Key<?>,Object>
com.google.errorprone.refaster.Bindings
- All Implemented Interfaces:
Map<Bindings.Key<?>,
Object>
A type-safe map from objects of type
Bindings.Key<V>
, which consist of a String
key and a Bindings.Key
subclass, to values of type V
.- Author:
- Louis Wasserman
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.collect.ForwardingMap
com.google.common.collect.ForwardingMap.StandardEntrySet, com.google.common.collect.ForwardingMap.StandardKeySet, com.google.common.collect.ForwardingMap.StandardValues
-
Method Summary
Modifier and TypeMethodDescriptionstatic Bindings
create()
static Bindings
static <V> Bindings
create
(Bindings.Key<V> key, V value) static <V1,
V2> Bindings create
(Bindings.Key<V1> key1, V1 value1, Bindings.Key<V2> key2, V2 value2) protected Map
<Bindings.Key<?>, Object> delegate()
<V> V
getBinding
(Bindings.Key<V> key) @Nullable Object
put
(Bindings.Key<?> key, Object value) void
putAll
(Map<? extends Bindings.Key<?>, ? extends Object> map) <V> V
putBinding
(Bindings.Key<V> key, V value) Methods inherited from class com.google.common.collect.ForwardingMap
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, remove, size, standardClear, standardContainsKey, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToString, values
Methods inherited from class com.google.common.collect.ForwardingObject
toString
Methods inherited from class java.lang.Object
clone, 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 Details
-
create
-
create
-
create
public static <V1,V2> Bindings create(Bindings.Key<V1> key1, V1 value1, Bindings.Key<V2> key2, V2 value2) -
create
-
delegate
- Specified by:
delegate
in classcom.google.common.collect.ForwardingMap<Bindings.Key<?>,
Object>
-
getBinding
-
putBinding
-
put
- Specified by:
put
in interfaceMap<Bindings.Key<?>,
Object> - Overrides:
put
in classcom.google.common.collect.ForwardingMap<Bindings.Key<?>,
Object>
-
putAll
- Specified by:
putAll
in interfaceMap<Bindings.Key<?>,
Object> - Overrides:
putAll
in classcom.google.common.collect.ForwardingMap<Bindings.Key<?>,
Object>
-
unmodifiable
-