V
- the value type stored in the map.public interface ShortObjectMap<V> extends Map<Short,V>
short
s as keys.Modifier and Type | Interface and Description |
---|---|
static interface |
ShortObjectMap.PrimitiveEntry<V>
A primitive entry in the map, provided by the iterator from
entries() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(short key)
Indicates whether or not this map contains a value for the specified key.
|
Iterable<ShortObjectMap.PrimitiveEntry<V>> |
entries()
Gets an iterable to traverse over the primitive entries contained in this map.
|
V |
get(short key)
Gets the value in the map with the specified key.
|
V |
put(short key,
V value)
Puts the given entry into the map.
|
V |
remove(short key)
Removes the entry with the specified key.
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
V get(short key)
key
- the key whose associated value is to be returned.null
if the key was not found in the map.V put(short key, V value)
key
- the key of the entry.value
- the value of the entry.null
if there was no previous mapping.V remove(short key)
key
- the key for the entry to be removed from this map.null
if there was no mapping.Iterable<ShortObjectMap.PrimitiveEntry<V>> entries()
ShortObjectMap.PrimitiveEntry
s returned by the Iterator
may change as the Iterator
progresses. The caller should not rely on ShortObjectMap.PrimitiveEntry
key/value stability.boolean containsKey(short key)
Copyright © 2008–2024 The Netty Project. All rights reserved.