| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final RegularImmutableBiMap | |
| pack-priv final transient Map. | |
| private final transient int | |
| private transient ImmutableBiMap | |
| private final transient @Nullable ImmutableMapEntry | |
| private final transient int | |
| pack-priv static final double | |
| private final transient @Nullable ImmutableMapEntry |
| Access | Constructor and Description |
|---|---|
| private | RegularImmutableBiMap(@Nullable ImmutableMapEntry<K, V>[] keyTable, @Nullable ImmutableMapEntry<K, V>[] valueTable, Map.
|
| Modifier and Type | Method and Description |
|---|---|
| private static void | checkNoConflictInValueBucket(Object value, Map.
|
| pack-priv ImmutableSet | |
| pack-priv ImmutableSet | |
| public void | forEach(BiConsumer<? super K, ? super V>
The action to be performed for each entry action)Overrides default java. |
| pack-priv static <K, V> ImmutableBiMap | |
| pack-priv static <K, V> ImmutableBiMap | |
| 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.
|
| public int | hashCode()
Overrides com. Implements java. |
| public ImmutableBiMap | inverse()
Implements abstract com. Implements com. |
| pack-priv boolean | |
| pack-priv boolean | |
| public int | |
| pack-priv Object | writeReplace()
Overrides com. |
| EMPTY | back to summary |
|---|---|
pack-priv static final RegularImmutableBiMap<Object, Object> EMPTY
| |
| entries | back to summary |
|---|---|
| pack-priv final transient Map. | |
| hashCode | back to summary |
|---|---|
| private final transient int hashCode | |
| inverse | back to summary |
|---|---|
| private transient ImmutableBiMap<V, K> inverse
| |
| keyTable | back to summary |
|---|---|
| private final transient @Nullable ImmutableMapEntry<K, V>[] keyTable
| |
| mask | back to summary |
|---|---|
| private final transient int mask | |
| MAX_LOAD_FACTOR | back to summary |
|---|---|
| pack-priv static final double MAX_LOAD_FACTOR | |
| valueTable | back to summary |
|---|---|
| private final transient @Nullable ImmutableMapEntry<K, V>[] valueTable
| |
| RegularImmutableBiMap | back to summary |
|---|---|
| private RegularImmutableBiMap(@Nullable ImmutableMapEntry<K, V>[] keyTable, @Nullable ImmutableMapEntry<K, V>[] valueTable, Map. | |
| checkNoConflictInValueBucket | back to summary |
|---|---|
private static void checkNoConflictInValueBucket(Object value, Map.
| |
| createEntrySet | back to summary |
|---|---|
| pack-priv ImmutableSet Implements abstract com.
| |
| createKeySet | back to summary |
|---|---|
| pack-priv ImmutableSet Implements abstract com.
| |
| 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.
| |
| fromEntries | back to summary |
|---|---|
| pack-priv static <K, V> ImmutableBiMap | |
| fromEntryArray | back to summary |
|---|---|
| pack-priv static <K, V> ImmutableBiMap | |
| 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
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides com. Implements java. Doc from java. Returns the hash code value for this map. The hash code of a map is
defined to be the sum of the hash codes of each entry in the map's
| |
| inverse | back to summary |
|---|---|
| public ImmutableBiMap Implements abstract com. Implements com. Doc from com. Returns the inverse view of this bimap, which maps each of this bimap's values to its associated key. The two bimaps are backed by the same data; any changes to one will appear in the other. Note There is no guaranteed correspondence between the iteration order of a bimap and that of its inverse. The inverse of an
| |
| isHashCodeFast | back to summary |
|---|---|
| pack-priv boolean isHashCodeFast() Overrides com.
| |
| isPartialView | back to summary |
|---|---|
| pack-priv boolean isPartialView() Implements abstract 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 | Class and Description |
|---|---|
| pack-priv class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ImmutableSet | |
| pack-priv ImmutableSet | |
| public void | forEach(BiConsumer<? super V, ? super K>
The action to be performed for each entry action)Overrides default java. |
| public K | get(Object
the key whose associated value is to be returned value)Implements abstract com. Implements java. null if this map contains no mapping for the key.
|
| public ImmutableBiMap | inverse()
Implements abstract com. Implements com. |
| pack-priv boolean | |
| private void | |
| public int | |
| pack-priv Object | writeReplace()
Overrides com. |
| Inverse | back to summary |
|---|---|
| private Inverse() | |
| createEntrySet | back to summary |
|---|---|
| pack-priv ImmutableSet Implements abstract com.
| |
| createKeySet | back to summary |
|---|---|
| pack-priv ImmutableSet Implements abstract com.
| |
| forEach | back to summary |
|---|---|
| public void forEach(BiConsumer<? super V, ? super K> 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 K get(Object value) 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
| |
| inverse | back to summary |
|---|---|
| public ImmutableBiMap Implements abstract com. Implements com. Doc from com. Returns the inverse view of this bimap, which maps each of this bimap's values to its associated key. The two bimaps are backed by the same data; any changes to one will appear in the other. Note There is no guaranteed correspondence between the iteration order of a bimap and that of its inverse. The inverse of an
| |
| isPartialView | back to summary |
|---|---|
| pack-priv boolean isPartialView() Implements abstract 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.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ImmutableList | |
| public void | forEach(Consumer<? super Map.
The action to be performed for each element action)Overrides default java. Iterable
until all elements have been processed or the action throws an
exception.
|
| public int | hashCode()
Overrides com. Implements java. |
| pack-priv boolean | isHashCodeFast()
Overrides com. true if the hashCode() method runs quickly.
|
| public UnmodifiableIterator | iterator()
Implements abstract com. Implements java. |
| pack-priv ImmutableMap | |
| pack-priv Object |
| InverseEntrySet | back to summary |
|---|---|
| pack-priv InverseEntrySet() | |
| createAsList | back to summary |
|---|---|
| pack-priv ImmutableList Overrides com.
| |
| forEach | back to summary |
|---|---|
| public void forEach(Consumer<? super Map. Overrides default java. Doc from java. Performs the given action for each element of the The behavior of this method is unspecified if the action performs side-effects that modify the underlying source of elements, unless an overriding class has specified a concurrent modification policy. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides com. Implements java. Doc from java. Returns the hash code value for this set. The hash code of a set is
defined to be the sum of the hash codes of the elements in the set,
where the hash code of a
| |
| isHashCodeFast | back to summary |
|---|---|
| pack-priv boolean isHashCodeFast() Overrides com. Doc from com. Returns
| |
| iterator | back to summary |
|---|---|
| public UnmodifiableIterator Implements abstract com. Implements java. Doc from java. Returns an iterator over the elements in this set. The elements are returned in no particular order (unless this set is an instance of some class that provides a guarantee).
| |
| map | back to summary |
|---|---|
| pack-priv ImmutableMap Implements abstract com.
| |
| writeReplace | back to summary |
|---|---|
| pack-priv Object writeReplace() Overrides com.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ImmutableBiMap | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Object |
| forward | back to summary |
|---|---|
| private final ImmutableBiMap<K, V> forward | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| InverseSerializedForm | back to summary |
|---|---|
| pack-priv InverseSerializedForm(ImmutableBiMap<K, V> forward) | |
| readResolve | back to summary |
|---|---|
| pack-priv Object readResolve() | |