Entry for ImmutableMap that adds extra methods to traverse hash
buckets for the key and the value. This allows reuse in RegularImmutableMap and RegularImmutableBiMap, which don't have to recopy the entries created by their Builder
implementations.
This base implementation has no key or value pointers, so instances of ImmutableMapEntry (but not its subclasses) can be reused when copied from one ImmutableMap to another.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static <K, V> ImmutableMapEntry | |
| pack-priv ImmutableMapEntry | |
| pack-priv ImmutableMapEntry | |
| pack-priv boolean | isReusable()
Returns true if this entry has no bucket links and can safely be reused as a terminal entry in a bucket in another map. |
| ImmutableMapEntry | back to summary |
|---|---|
| pack-priv ImmutableMapEntry(K key, V value) | |
| ImmutableMapEntry | back to summary |
|---|---|
| pack-priv ImmutableMapEntry(ImmutableMapEntry<K, V> contents) | |
| createEntryArray | back to summary |
|---|---|
| pack-priv static <K, V> ImmutableMapEntry Creates an The returned array has all its elements set to their initial null values. However, we don't
declare it as
| |
| getNextInKeyBucket | back to summary |
|---|---|
pack-priv ImmutableMapEntry
| |
| getNextInValueBucket | back to summary |
|---|---|
pack-priv ImmutableMapEntry
| |
| isReusable | back to summary |
|---|---|
| pack-priv boolean isReusable() Returns true if this entry has no bucket links and can safely be reused as a terminal entry in a bucket in another map. | |
| Modifier and Type | Field and Description |
|---|---|
| private final transient ImmutableMapEntry |
| Access | Constructor and Description |
|---|---|
| pack-priv | NonTerminalImmutableBiMapEntry(K key, V value, ImmutableMapEntry<K, V> nextInKeyBucket, ImmutableMapEntry<K, V> nextInValueBucket)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ImmutableMapEntry |
| nextInValueBucket | back to summary |
|---|---|
| private final transient ImmutableMapEntry<K, V> nextInValueBucket
| |
| NonTerminalImmutableBiMapEntry | back to summary |
|---|---|
| pack-priv NonTerminalImmutableBiMapEntry(K key, V value, ImmutableMapEntry<K, V> nextInKeyBucket, ImmutableMapEntry<K, V> nextInValueBucket) | |
| getNextInValueBucket | back to summary |
|---|---|
| pack-priv ImmutableMapEntry Overrides com.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final transient ImmutableMapEntry |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final ImmutableMapEntry | |
| pack-priv final boolean | isReusable()
Overrides com. |
| nextInKeyBucket | back to summary |
|---|---|
| private final transient ImmutableMapEntry<K, V> nextInKeyBucket
| |
| NonTerminalImmutableMapEntry | back to summary |
|---|---|
| pack-priv NonTerminalImmutableMapEntry(K key, V value, ImmutableMapEntry<K, V> nextInKeyBucket) | |
| getNextInKeyBucket | back to summary |
|---|---|
| pack-priv final ImmutableMapEntry Overrides com.
| |
| isReusable | back to summary |
|---|---|
| pack-priv final boolean isReusable() Overrides com. Doc from com. Returns true if this entry has no bucket links and can safely be reused as a terminal entry in a bucket in another map.
| |