|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.utils.ConstantHashFunction
public class ConstantHashFunction
A hash function that always hashes everything to the same value. Useful for testing purposes.
| Constructor Summary | |
|---|---|
ConstantHashFunction(int hashCode)
|
|
| Method Summary | |
|---|---|
int |
hash(byte[] key)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConstantHashFunction(int hashCode)
| Method Detail |
|---|
public int hash(byte[] key)
hash in interface HashFunction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||