private static final class ByteCollections.EmptyMap extends java.lang.Object implements ByteObjectMap<java.lang.Object>
ByteObjectMap.PrimitiveEntry<V>| Modifier | Constructor and Description |
|---|---|
private |
EmptyMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(byte 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<ByteObjectMap.PrimitiveEntry<java.lang.Object>> |
entries()
Gets an iterable to traverse over the primitive entries contained in this map.
|
java.util.Set<java.util.Map.Entry<java.lang.Byte,java.lang.Object>> |
entrySet() |
java.lang.Object |
get(byte key)
Gets the value in the map with the specified key.
|
java.lang.Object |
get(java.lang.Object key) |
boolean |
isEmpty() |
java.util.Set<java.lang.Byte> |
keySet() |
java.lang.Object |
put(byte key,
java.lang.Object value)
Puts the given entry into the map.
|
java.lang.Object |
put(java.lang.Byte key,
java.lang.Object value) |
void |
putAll(java.util.Map<? extends java.lang.Byte,?> m) |
java.lang.Object |
remove(byte key)
Removes the entry with the specified key.
|
java.lang.Object |
remove(java.lang.Object key) |
int |
size() |
java.util.Collection<java.lang.Object> |
values() |
public java.lang.Object get(byte key)
ByteObjectMapget in interface ByteObjectMap<java.lang.Object>key - the key whose associated value is to be returned.null if the key was not found in the map.public java.lang.Object put(byte key,
java.lang.Object value)
ByteObjectMapput in interface ByteObjectMap<java.lang.Object>key - the key of the entry.value - the value of the entry.null if there was no previous mapping.public java.lang.Object remove(byte key)
ByteObjectMapremove in interface ByteObjectMap<java.lang.Object>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.Byte,java.lang.Object>public boolean isEmpty()
isEmpty in interface java.util.Map<java.lang.Byte,java.lang.Object>public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Byte,java.lang.Object>public void clear()
clear in interface java.util.Map<java.lang.Byte,java.lang.Object>public java.util.Set<java.lang.Byte> keySet()
keySet in interface java.util.Map<java.lang.Byte,java.lang.Object>public boolean containsKey(byte key)
ByteObjectMapcontainsKey in interface ByteObjectMap<java.lang.Object>public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Byte,java.lang.Object>public java.lang.Iterable<ByteObjectMap.PrimitiveEntry<java.lang.Object>> entries()
ByteObjectMapByteObjectMap.PrimitiveEntrys returned by the Iterator may change as the Iterator
progresses. The caller should not rely on ByteObjectMap.PrimitiveEntry key/value stability.entries in interface ByteObjectMap<java.lang.Object>public java.lang.Object get(java.lang.Object key)
get in interface java.util.Map<java.lang.Byte,java.lang.Object>public java.lang.Object put(java.lang.Byte key,
java.lang.Object value)
put in interface java.util.Map<java.lang.Byte,java.lang.Object>public java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Byte,java.lang.Object>public void putAll(java.util.Map<? extends java.lang.Byte,?> m)
putAll in interface java.util.Map<java.lang.Byte,java.lang.Object>public java.util.Collection<java.lang.Object> values()
values in interface java.util.Map<java.lang.Byte,java.lang.Object>public java.util.Set<java.util.Map.Entry<java.lang.Byte,java.lang.Object>> entrySet()
entrySet in interface java.util.Map<java.lang.Byte,java.lang.Object>