Example usage for Java com.google.common.collect ClassToInstanceMap fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | containsKey(Object key) Returns true if this map contains a mapping for the specified key. |
V | get(Object key) Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key. |
T | getInstance(Class Returns the value the specified class is mapped to, or null if no entry for this class is present. |
boolean | isEmpty() Returns true if this map contains no key-value mappings. |
Set | keySet() Returns a Set view of the keys contained in this map. |
V | merge(K key, V value, BiFunction super V, ? super V, ? extends V> remappingFunction) If the specified key is not already associated with a value or is associated with null, associates it with the given non-null value. |
V | put(K key, V value) Associates the specified value with the specified key in this map (optional operation). |
void | putAll(Map extends K, ? extends V> m) Copies all of the mappings from the specified map to this map (optional operation). |
T | putInstance(Class Maps the specified class to the specified value. |
Collection | values() Returns a Collection view of the values contained in this map. |