Package org.jctools.maps
Class AbstractEntry<TypeK,TypeV>
java.lang.Object
org.jctools.maps.AbstractEntry<TypeK,TypeV>
- Type Parameters:
TypeK
- the type of keys maintained by this mapTypeV
- the type of mapped values
- All Implemented Interfaces:
Map.Entry<TypeK,
TypeV>
- Direct Known Subclasses:
NonBlockingHashMap.NBHMEntry
,NonBlockingHashMapLong.NBHMLEntry
,NonBlockingIdentityHashMap.NBHMEntry
A simple implementation of
Map.Entry
.
Does not implement Map.Entry.setValue(V)
, that is done by users of the class.- Since:
- 1.5
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
_key
Strongly typed key -
_val
Strongly typed value
-
-
Constructor Details
-
AbstractEntry
-
AbstractEntry
-
-
Method Details
-
toString
Return "key=val" string -
getKey
Return key -
getValue
Return val -
equals
Equal if the underlying key invalid input: '&' value are equal -
hashCode
public int hashCode()Compute"key.hashCode() ^ val.hashCode()"
-
eq
-