V - the value type stored in the map.private static final class LongCollections.UnmodifiableMap<V> extends java.lang.Object implements LongObjectMap<V>
LongObjectMap.| Modifier and Type | Class and Description |
|---|---|
private class |
LongCollections.UnmodifiableMap.EntryImpl
Unmodifiable wrapper for an entry.
|
private class |
LongCollections.UnmodifiableMap.IteratorImpl
Unmodifiable wrapper for an iterator.
|
LongObjectMap.PrimitiveEntry<V>| Modifier and Type | Field and Description |
|---|---|
private java.lang.Iterable<LongObjectMap.PrimitiveEntry<V>> |
entries |
private java.util.Set<java.util.Map.Entry<java.lang.Long,V>> |
entrySet |
private java.util.Set<java.lang.Long> |
keySet |
private LongObjectMap<V> |
map |
private java.util.Collection<V> |
values |
| Constructor and Description |
|---|
UnmodifiableMap(LongObjectMap<V> map) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(long key)
Indicates whether or not this map contains a value for the specified key.
|
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object value) |
java.lang.Iterable<LongObjectMap.PrimitiveEntry<V>> |
entries()
Gets an iterable to traverse over the primitive entries contained in this map.
|
java.util.Set<java.util.Map.Entry<java.lang.Long,V>> |
entrySet() |
V |
get(long key)
Gets the value in the map with the specified key.
|
V |
get(java.lang.Object key) |
boolean |
isEmpty() |
java.util.Set<java.lang.Long> |
keySet() |
V |
put(long key,
V value)
Puts the given entry into the map.
|
V |
put(java.lang.Long key,
V value) |
void |
putAll(java.util.Map<? extends java.lang.Long,? extends V> m) |
V |
remove(long key)
Removes the entry with the specified key.
|
V |
remove(java.lang.Object key) |
int |
size() |
java.util.Collection<V> |
values() |
private final LongObjectMap<V> map
private java.util.Set<java.lang.Long> keySet
private java.util.Set<java.util.Map.Entry<java.lang.Long,V>> entrySet
private java.util.Collection<V> values
private java.lang.Iterable<LongObjectMap.PrimitiveEntry<V>> entries
UnmodifiableMap(LongObjectMap<V> map)
public V get(long key)
LongObjectMapget in interface LongObjectMap<V>key - the key whose associated value is to be returned.null if the key was not found in the map.public V put(long key, V value)
LongObjectMapput in interface LongObjectMap<V>key - the key of the entry.value - the value of the entry.null if there was no previous mapping.public V remove(long key)
LongObjectMapremove in interface LongObjectMap<V>key - the key for the entry to be removed from this map.null if there was no mapping.public int size()
size in interface java.util.Map<java.lang.Long,V>public boolean isEmpty()
isEmpty in interface java.util.Map<java.lang.Long,V>public void clear()
clear in interface java.util.Map<java.lang.Long,V>public boolean containsKey(long key)
LongObjectMapcontainsKey in interface LongObjectMap<V>public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Long,V>public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Long,V>public V get(java.lang.Object key)
get in interface java.util.Map<java.lang.Long,V>public V put(java.lang.Long key, V value)
put in interface java.util.Map<java.lang.Long,V>public V remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Long,V>public void putAll(java.util.Map<? extends java.lang.Long,? extends V> m)
putAll in interface java.util.Map<java.lang.Long,V>public java.lang.Iterable<LongObjectMap.PrimitiveEntry<V>> entries()
LongObjectMapLongObjectMap.PrimitiveEntrys returned by the Iterator may change as the Iterator
progresses. The caller should not rely on LongObjectMap.PrimitiveEntry key/value stability.entries in interface LongObjectMap<V>public java.util.Set<java.lang.Long> keySet()
keySet in interface java.util.Map<java.lang.Long,V>public java.util.Set<java.util.Map.Entry<java.lang.Long,V>> entrySet()
entrySet in interface java.util.Map<java.lang.Long,V>