|
aa
|
A simple implementation of java.util.Map.Entry. More...
Public Member Functions | |
| AbstractEntry (final Map.Entry< TypeK, TypeV > e) | |
| AbstractEntry (final TypeK key, final TypeV val) | |
| boolean | equals (final Object o) |
| Equal if the underlying key & value are equal. More... | |
| TypeK | getKey () |
| Return key. More... | |
| TypeV | getValue () |
| Return val. More... | |
| int | hashCode () |
Compute "key.hashCode() ^ val.hashCode()" More... | |
| String | toString () |
| Return "key=val" string. More... | |
Protected Attributes | |
| final TypeK | _key |
| Strongly typed key. More... | |
| TypeV | _val |
| Strongly typed value. More... | |
Static Private Member Functions | |
| static boolean | eq (final Object o1, final Object o2) |
A simple implementation of java.util.Map.Entry.
Does not implement java.util.Map.Entry#setValue, that is done by users of the class.
| <TypeK> | the type of keys maintained by this map |
| <TypeV> | the type of mapped values |
Definition at line 15 of file AbstractEntry.java.
| com.cliffc.aa.util.AbstractEntry< TypeK, TypeV >.AbstractEntry | ( | final TypeK | key, |
| final TypeV | val | ||
| ) |
Definition at line 21 of file AbstractEntry.java.
| com.cliffc.aa.util.AbstractEntry< TypeK, TypeV >.AbstractEntry | ( | final Map.Entry< TypeK, TypeV > | e | ) |
Definition at line 22 of file AbstractEntry.java.
|
staticprivate |
Definition at line 44 of file AbstractEntry.java.
Referenced by com.cliffc.aa.util.AbstractEntry< Long, TypeV >.equals().
| boolean com.cliffc.aa.util.AbstractEntry< TypeK, TypeV >.equals | ( | final Object | o | ) |
| TypeK com.cliffc.aa.util.AbstractEntry< TypeK, TypeV >.getKey | ( | ) |
| TypeV com.cliffc.aa.util.AbstractEntry< TypeK, TypeV >.getValue | ( | ) |
| int com.cliffc.aa.util.AbstractEntry< TypeK, TypeV >.hashCode | ( | ) |
| String com.cliffc.aa.util.AbstractEntry< TypeK, TypeV >.toString | ( | ) |
Return "key=val" string.
Definition at line 24 of file AbstractEntry.java.
|
protected |
Strongly typed key.
Definition at line 17 of file AbstractEntry.java.
Referenced by com.cliffc.aa.util.AbstractEntry< Long, TypeV >.AbstractEntry(), com.cliffc.aa.util.AbstractEntry< Long, TypeV >.equals(), com.cliffc.aa.util.AbstractEntry< Long, TypeV >.getKey(), com.cliffc.aa.util.AbstractEntry< Long, TypeV >.hashCode(), com.cliffc.aa.util.NonBlockingHashMap< TypeK, TypeV >.NBHMEntry.setValue(), and com.cliffc.aa.util.AbstractEntry< Long, TypeV >.toString().
|
protected |
Strongly typed value.
Definition at line 19 of file AbstractEntry.java.
Referenced by com.cliffc.aa.util.AbstractEntry< Long, TypeV >.AbstractEntry(), com.cliffc.aa.util.AbstractEntry< Long, TypeV >.equals(), com.cliffc.aa.util.AbstractEntry< Long, TypeV >.getValue(), com.cliffc.aa.util.AbstractEntry< Long, TypeV >.hashCode(), com.cliffc.aa.util.NonBlockingHashMap< TypeK, TypeV >.NBHMEntry.setValue(), and com.cliffc.aa.util.AbstractEntry< Long, TypeV >.toString().