* Copyright (C) 2012 The Guava Authors
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
TypeTokento an instance of that type. In addition to implementing
Map, the additional type-safe operations
Generally, implementations don't support
because there is no way to check an object at runtime to be an instance of a
TypeToken. Instead, caller should use the type safe
Also, if caller suppresses unchecked warnings and passes in an
Iterable<Integer>, the map won't be able to detect and throw type error.
Like any other
Map<Class, Object>, this map may contain entries
for primitive types, and a primitive type and its corresponding wrapper type
may map to different values.
<B> the common supertype that all entries must share; often this is simply
putInstance(Foo.class, foo) is equivalent to
nullif there was no previous entry.