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