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 ClassesNested 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 Bindingscreate()static Bindingsstatic <V> Bindingscreate(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> VgetBinding(Bindings.Key<V> key) @Nullable Objectput(Bindings.Key<?> key, Object value) voidputAll(Map<? extends Bindings.Key<?>, ? extends Object> map) <V> VputBinding(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, valuesMethods inherited from class com.google.common.collect.ForwardingObject
toStringMethods inherited from interface 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:
delegatein classcom.google.common.collect.ForwardingMap<Bindings.Key<?>, Object>
-
getBinding
-
putBinding
-
put
- Specified by:
putin interfaceMap<Bindings.Key<?>, Object>- Overrides:
putin classcom.google.common.collect.ForwardingMap<Bindings.Key<?>, Object>
-
putAll
- Specified by:
putAllin interfaceMap<Bindings.Key<?>, Object>- Overrides:
putAllin classcom.google.common.collect.ForwardingMap<Bindings.Key<?>, Object>
-
unmodifiable
-