ImmutableTypeToInstanceMap.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Map | delegate()
Implements abstract com. |
| public Set | entrySet()
Overrides com. Implements java. Set view of the mappings contained in this map.
|
| public <T extends @NonNull B> T | getInstance(Class<T> type)
Implements com. null if no entry for this class
is present.
|
| public <T extends @NonNull B> T | getInstance(TypeToken<T> type)
Implements com. null if no entry for this type is
present.
|
| public B | put(TypeToken<? extends @NonNull B>
key with which the specified value is to be associated key, B value to be associated with the specified key value)Overrides com. Implements java.
Deprecated
unsupported operation
Not supported.
|
| public void | putAll(Map<? extends TypeToken<? extends @NonNull B>, ? extends B>
mappings to be stored in this map map)Overrides com. Implements java.
Deprecated
unsupported operation
Not supported.
|
| public <T extends B> T | putInstance(Class<@NonNull T> type, T value)
Implements com. |
| public <T extends B> T | putInstance(TypeToken<@NonNull T> type, T value)
Implements com. |
| private <T extends @NonNull B> T | |
| private <T extends B> T |
| backingMap | back to summary |
|---|---|
| private final Map<TypeToken<? extends @NonNull B>, B> backingMap | |
| MutableTypeToInstanceMap | back to summary |
|---|---|
| public MutableTypeToInstanceMap() | |
| delegate | back to summary |
|---|---|
| protected Map Implements abstract com. Doc from com. Returns the backing delegate instance that methods are forwarded to. Abstract subclasses
generally override this method with an abstract method that has a more specific return type,
such as
| |
| entrySet | back to summary |
|---|---|
| public Set Overrides com. Implements java. Doc from java. Returns a | |
| getInstance | back to summary |
|---|---|
| public <T extends @NonNull B> T getInstance(Class<T> type) Implements com. Doc from com. Returns the value the specified class is mapped to, or
| |
| getInstance | back to summary |
|---|---|
| public <T extends @NonNull B> T getInstance(TypeToken<T> type) Implements com. Doc from com. Returns the value the specified type is mapped to, or
| |
| put | back to summary |
|---|---|
| public B put(TypeToken<? extends @NonNull B> key, B value) Overrides com. Implements java. Deprecated unsupported operation Not supported. Use
| |
| putAll | back to summary |
|---|---|
| public void putAll(Map<? extends TypeToken<? extends @NonNull B>, ? extends B> map) Overrides com. Implements java. Deprecated unsupported operation Not supported. Use
| |
| putInstance | back to summary |
|---|---|
| public <T extends B> T putInstance(Class<@NonNull T> type, T value) Implements com. Doc from com. Maps the specified class to the specified value. Does not associate this value with any of the class's supertypes.
| |
| putInstance | back to summary |
|---|---|
| public <T extends B> T putInstance(TypeToken<@NonNull T> type, T value) Implements com. Doc from com. Maps the specified type to the specified value. Does not associate this value with any of the type's supertypes.
| |
| trustedGet | back to summary |
|---|---|
private <T extends @NonNull B> T trustedGet(TypeToken<T> type)
| |
| trustedPut | back to summary |
|---|---|
private <T extends B> T trustedPut(TypeToken<@NonNull T> type, T value)
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected Map. | delegate()
Implements abstract com. |
| public V | setValue(V
new value to be stored in this entry value)Overrides com. Implements java. |
| pack-priv static <K, V extends @Nullable Object> Set | |
| private static <K, V extends @Nullable Object> Iterator |
| delegate | back to summary |
|---|---|
| private final Map. | |
| UnmodifiableEntry | back to summary |
|---|---|
| private UnmodifiableEntry(Map. | |
| delegate | back to summary |
|---|---|
| protected Map. Implements abstract com. Doc from com. Returns the backing delegate instance that methods are forwarded to. Abstract subclasses
generally override this method with an abstract method that has a more specific return type,
such as
| |
| setValue | back to summary |
|---|---|
| public V setValue(V value) Overrides com. Implements java. Doc from java. Replaces the value corresponding to this entry with the specified
value (optional operation). (Writes through to the map.) The
behavior of this call is undefined if the mapping has already been
removed from the map (by the iterator's
| |
| transformEntries | back to summary |
|---|---|
| pack-priv static <K, V extends @Nullable Object> Set | |
| transformEntries | back to summary |
|---|---|
| private static <K, V extends @Nullable Object> Iterator | |