public class SimpleHashFunction extends Object implements HashFunction
Object.hashCode()
public int hash(String routing)
HashFunction
hash
in interface HashFunction
routing
- String to calculate the hash value frompublic int hash(String type, String id)
HashFunction
hash
in interface HashFunction
type
- types nameid
- String to calculate the hash value fromCopyright © 2009–2017. All rights reserved.