TypeK - the type of keys maintained by this mapTypeV - the type of mapped valuesabstract class AbstractEntry<TypeK,TypeV>
extends java.lang.Object
implements java.util.Map.Entry<TypeK,TypeV>
Map.Entry.
Does not implement Map.Entry.setValue(V), that is done by users of the class.| Modifier and Type | Field and Description |
|---|---|
protected TypeK |
_key
Strongly typed key
|
protected TypeV |
_val
Strongly typed value
|
| Constructor and Description |
|---|
AbstractEntry(java.util.Map.Entry<TypeK,TypeV> e) |
AbstractEntry(TypeK key,
TypeV val) |
| Modifier and Type | Method and Description |
|---|---|
private static boolean |
eq(java.lang.Object o1,
java.lang.Object o2) |
boolean |
equals(java.lang.Object o)
Equal if the underlying key & value are equal
|
TypeK |
getKey()
Return key
|
TypeV |
getValue()
Return val
|
int |
hashCode()
Compute
"key.hashCode() ^ val.hashCode()" |
java.lang.String |
toString()
Return "key=val" string
|
protected final TypeK _key
protected TypeV _val
public java.lang.String toString()
toString in class java.lang.Objectpublic TypeK getKey()
public TypeV getValue()
public boolean equals(java.lang.Object o)
public int hashCode()
"key.hashCode() ^ val.hashCode()"private static boolean eq(java.lang.Object o1,
java.lang.Object o2)