public class DjbHashFunction extends Object implements HashFunction
| コンストラクタと説明 |
|---|
DjbHashFunction() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static int |
DJB_HASH(byte[] value,
int offset,
int length) |
static int |
DJB_HASH(String value) |
int |
hash(String routing)
Calculate a hash value for routing
|
int |
hash(String type,
String id)
Calculate a hash value for routing and its type
|
public static int DJB_HASH(String value)
public static int DJB_HASH(byte[] value,
int offset,
int length)
public int hash(String routing)
HashFunctionhash インタフェース内 HashFunctionrouting - String to calculate the hash value frompublic int hash(String type, String id)
HashFunctionhash インタフェース内 HashFunctiontype - types nameid - String to calculate the hash value fromCopyright © 2009–2016. All rights reserved.