V - the keyType of elements maintained by this Collectionpublic static class AbstractByte2ObjectMap.BasicEntry<V> extends java.lang.Object implements Byte2ObjectMap.Entry<V>
| Constructor and Description |
|---|
BasicEntry()
A basic Empty constructor
|
BasicEntry(byte key,
V value)
A Type Specific Constructor
|
BasicEntry(java.lang.Byte key,
V value)
A Boxed Constructor for supporting java variants
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
byte |
getByteKey()
Type Specific getKey method that reduces boxing/unboxing
|
V |
getValue() |
int |
hashCode() |
void |
set(byte key,
V value)
A Helper method for fast replacing values
|
V |
setValue(V value) |
java.lang.String |
toString() |
getKeypublic BasicEntry()
public BasicEntry(java.lang.Byte key,
V value)
key - the key of a entryvalue - the value of a entrypublic BasicEntry(byte key,
V value)
key - the key of a entryvalue - the value of a entrypublic void set(byte key,
V value)
key - the key that should be replacedvalue - the value that should be replacedpublic byte getByteKey()
Byte2ObjectMap.EntrygetByteKey in interface Byte2ObjectMap.Entry<V>public V getValue()
getValue in interface java.util.Map.Entry<java.lang.Byte,V>public V setValue(V value)
setValue in interface java.util.Map.Entry<java.lang.Byte,V>public boolean equals(java.lang.Object obj)
equals in interface java.util.Map.Entry<java.lang.Byte,V>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Map.Entry<java.lang.Byte,V>hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object