public class SimpleHashFunction extends Object implements HashFunction
Object.hashCode()| Constructor and Description |
|---|
SimpleHashFunction() |
| Modifier and Type | Method and Description |
|---|---|
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 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 nameCopyright © 2009–2016. All rights reserved.