Package com.google.common.collect
Class ImmutableMapEntry.NonTerminalImmutableMapEntry<K,V>
- java.lang.Object
-
- com.google.common.collect.AbstractMapEntry<K,V>
-
- com.google.common.collect.ImmutableEntry<K,V>
-
- com.google.common.collect.ImmutableMapEntry<K,V>
-
- com.google.common.collect.ImmutableMapEntry.NonTerminalImmutableMapEntry<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Map.Entry<K,V>
- Direct Known Subclasses:
ImmutableMapEntry.NonTerminalImmutableBiMapEntry
- Enclosing class:
- ImmutableMapEntry<K,V>
static class ImmutableMapEntry.NonTerminalImmutableMapEntry<K,V> extends ImmutableMapEntry<K,V>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableMapEntry
ImmutableMapEntry.NonTerminalImmutableBiMapEntry<K,V>, ImmutableMapEntry.NonTerminalImmutableMapEntry<K,V>
-
-
Field Summary
Fields Modifier and Type Field Description private ImmutableMapEntry<K,V>
nextInKeyBucket
-
Fields inherited from class com.google.common.collect.ImmutableEntry
key, value
-
-
Constructor Summary
Constructors Constructor Description NonTerminalImmutableMapEntry(K key, V value, ImmutableMapEntry<K,V> nextInKeyBucket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) ImmutableMapEntry<K,V>
getNextInKeyBucket()
(package private) 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.-
Methods inherited from class com.google.common.collect.ImmutableMapEntry
createEntryArray, getNextInValueBucket
-
Methods inherited from class com.google.common.collect.ImmutableEntry
getKey, getValue, setValue
-
Methods inherited from class com.google.common.collect.AbstractMapEntry
equals, hashCode, toString
-
-
-
-
Field Detail
-
nextInKeyBucket
@CheckForNull private final transient ImmutableMapEntry<K,V> nextInKeyBucket
-
-
Constructor Detail
-
NonTerminalImmutableMapEntry
NonTerminalImmutableMapEntry(K key, V value, @CheckForNull ImmutableMapEntry<K,V> nextInKeyBucket)
-
-
Method Detail
-
getNextInKeyBucket
@CheckForNull final ImmutableMapEntry<K,V> getNextInKeyBucket()
- Overrides:
getNextInKeyBucket
in classImmutableMapEntry<K,V>
-
isReusable
final boolean isReusable()
Description copied from class:ImmutableMapEntry
Returns true if this entry has no bucket links and can safely be reused as a terminal entry in a bucket in another map.- Overrides:
isReusable
in classImmutableMapEntry<K,V>
-
-