Java com.google.common.collect ClassToInstanceMap fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.collect ClassToInstanceMap fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.collect ClassToInstanceMap.

The text is from its open source code.

Method

booleancontainsKey(Object key)
Returns true if this map contains a mapping for the specified key.
Vget(Object key)
Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
TgetInstance(Class type)
Returns the value the specified class is mapped to, or null if no entry for this class is present.
booleanisEmpty()
Returns true if this map contains no key-value mappings.
SetkeySet()
Returns a Set view of the keys contained in this map.
Vmerge(K key, V value, BiFunction 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.
Vput(K key, V value)
Associates the specified value with the specified key in this map (optional operation).
voidputAll(Map m)
Copies all of the mappings from the specified map to this map (optional operation).
TputInstance(Class type, @Nullable T value)
Maps the specified class to the specified value.
Collectionvalues()
Returns a Collection view of the values contained in this map.