public class DjbHashFunction extends Object implements HashFunction
| Constructor and Description |
|---|
DjbHashFunction() |
public static int DJB_HASH(String value)
public static int DJB_HASH(byte[] value,
int offset,
int length)
public int hash(String routing)
HashFunctionhash in interface HashFunctionrouting - String to calculate the hash value frompublic int hash(String type, String id)
HashFunctionhash in interface HashFunctiontype - types nameid - String to calculate the hash value fromCopyright © 2009–2016. All rights reserved.