ImmutableMap backed by a non-empty java.util.EnumMap .
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static <K extends Enum | |
| public boolean | containsKey(Object
key whose presence in this map is to be tested key)Overrides com. Implements java. true if this map contains a mapping for the specified
key.
|
| pack-priv UnmodifiableIterator | entryIterator()
Implements abstract com. |
| pack-priv Spliterator | |
| public boolean | equals(Object
object to be compared for equality with this map object)Overrides com. Implements java. |
| public void | forEach(BiConsumer<? super K, ? super V>
The action to be performed for each entry action)Overrides default java. |
| public V | get(Object
the key whose associated value is to be returned key)Implements abstract com. Implements java. null if this map contains no mapping for the key.
|
| pack-priv boolean | |
| pack-priv UnmodifiableIterator | |
| pack-priv Spliterator | |
| private void | |
| public int | |
| pack-priv Object | writeReplace()
Overrides com. |
| delegate | back to summary |
|---|---|
| private final transient EnumMap<K, V> delegate | |
| ImmutableEnumMap | back to summary |
|---|---|
| private ImmutableEnumMap(EnumMap<K, V> delegate) | |
| asImmutable | back to summary |
|---|---|
| pack-priv static <K extends Enum | |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(Object key) Overrides com. Implements java. Doc from java. Returns | |
| entryIterator | back to summary |
|---|---|
| pack-priv UnmodifiableIterator Implements abstract com.
| |
| entrySpliterator | back to summary |
|---|---|
| pack-priv Spliterator Overrides com.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides com. Implements java. Doc from java. Compares the specified object with this map for equality. Returns
| |
| forEach | back to summary |
|---|---|
| public void forEach(BiConsumer<? super K, ? super V> action) Overrides default java. Doc from java. Performs the given action for each entry in this map until all entries have been processed or the action throws an exception. Unless otherwise specified by the implementing class, actions are performed in the order of entry set iteration (if an iteration order is specified.) Exceptions thrown by the action are relayed to the caller.
| |
| get | back to summary |
|---|---|
| public V get(Object key) Implements abstract com. Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
If this map permits null values, then a return value of
| |
| isPartialView | back to summary |
|---|---|
| pack-priv boolean isPartialView() Implements abstract com.
| |
| keyIterator | back to summary |
|---|---|
| pack-priv UnmodifiableIterator Overrides com.
| |
| keySpliterator | back to summary |
|---|---|
| pack-priv Spliterator Overrides com.
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream stream) throws InvalidObjectException Hides com.
| |
| size | back to summary |
|---|---|
| public int size() Implements java. Doc from java. Returns the number of key-value mappings in this map. If the
map contains more than
| |
| writeReplace | back to summary |
|---|---|
| pack-priv Object writeReplace() Overrides com. Doc from com. Returns a serializable form of this object. Non-public subclasses should not override this method. Publicly-accessible subclasses must override this method and should return a subclass of SerializedForm whose readResolve() method returns objects of the subclass type.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final EnumMap | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Object |
| delegate | back to summary |
|---|---|
| pack-priv final EnumMap<K, V> delegate | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| EnumSerializedForm | back to summary |
|---|---|
| pack-priv EnumSerializedForm(EnumMap<K, V> delegate) | |
| readResolve | back to summary |
|---|---|
| pack-priv Object readResolve() | |