public final class SimpleCommandHasher extends AbstractSimpleCommandHasher
CommandLongHasher implementation is simply based on Arrays.hashCode(long[])
and Arrays.hashCode(byte[]). These methods actually produce 32-bit hash codes. It is
advised to use proper 64-bit hash codes in production.| Modifier and Type | Field and Description |
|---|---|
static SimpleCommandHasher |
INSTANCE |
| Constructor and Description |
|---|
SimpleCommandHasher() |
| Modifier and Type | Method and Description |
|---|---|
protected long |
hashBytes(byte[] bytes) |
protected long |
hashLongs(long[] longs) |
hashBuilder, hashInt, hashRawablehashpublic static final SimpleCommandHasher INSTANCE
protected long hashLongs(long[] longs)
hashLongs in class AbstractCommandHasherprotected long hashBytes(byte[] bytes)
hashBytes in class AbstractSimpleCommandHasherCopyright © 2024. All rights reserved.