|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface CustomConcurrentHashMap.Equivalence<K>
An object performing equality comparisons, along with a hash
function consistent with this comparison. The type signatures
of the methods of this interface reflect those of Map: While only elements of K may be
entered into a Map, any Object may be tested for
membership. Note that the performance of hash maps is heavily
dependent on the quality of hash functions.
| Method Summary | |
|---|---|
boolean |
equal(K key,
java.lang.Object x)
Returns true if the given objects are considered equal. |
int |
hash(java.lang.Object x)
Returns a hash value such that equal(a, b) implies hash(a)==hash(b). |
| Method Detail |
|---|
boolean equal(K key,
java.lang.Object x)
key - a key in, or being placed in, the mapx - an object queried for membership
int hash(java.lang.Object x)
x - an object queried for membership
|
Copyright © 2008–2013 Václav Pech. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||