V
- the value type stored in the map.public interface LongObjectMap<V>
extends java.util.Map<java.lang.Long,V>
long
s as keys.Modifier and Type | Interface and Description |
---|---|
static interface |
LongObjectMap.PrimitiveEntry<V>
A primitive entry in the map, provided by the iterator from
entries() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(long key)
Indicates whether or not this map contains a value for the specified key.
|
java.lang.Iterable<LongObjectMap.PrimitiveEntry<V>> |
entries()
Gets an iterable to traverse over the primitive entries contained in this map.
|
V |
get(long key)
Gets the value in the map with the specified key.
|
V |
put(long key,
V value)
Puts the given entry into the map.
|
V |
remove(long key)
Removes the entry with the specified key.
|
V get(long key)
key
- the key whose associated value is to be returned.null
if the key was not found in the map.V put(long key, V value)
key
- the key of the entry.value
- the value of the entry.null
if there was no previous mapping.V remove(long key)
key
- the key for the entry to be removed from this map.null
if there was no mapping.java.lang.Iterable<LongObjectMap.PrimitiveEntry<V>> entries()
LongObjectMap.PrimitiveEntry
s returned by the Iterator
may change as the Iterator
progresses. The caller should not rely on LongObjectMap.PrimitiveEntry
key/value stability.boolean containsKey(long key)
Copyright © 2008–2019 The Netty Project. All rights reserved.