public final class GuavaCommandHasher extends java.lang.Object implements CommandLongHasher
CommandLongHasher based on HashFunction from Google Guava library.| Modifier and Type | Field and Description |
|---|---|
static com.google.common.hash.HashFunction |
DEFAULT_HASH_FUNCTION |
| Constructor and Description |
|---|
GuavaCommandHasher(com.google.common.hash.HashFunction function)
It is advised to use a
HashFunction capable of producing 64-bit hash. |
| Modifier and Type | Method and Description |
|---|---|
long |
hash(CommandObject command)
Produce a 64-bit signed hash value from a command object.
|
public static final com.google.common.hash.HashFunction DEFAULT_HASH_FUNCTION
public GuavaCommandHasher(com.google.common.hash.HashFunction function)
HashFunction capable of producing 64-bit hash.function - an implementation of hash functionpublic long hash(CommandObject command)
CommandLongHasherhash in interface CommandLongHashercommand - the command objectCopyright © 2024. All rights reserved.