public enum VanillaBytesHash extends Enum<VanillaBytesHash> implements BytesHasher
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Field and Description |
---|---|
static int |
K0 |
static int |
K1 |
static int |
K2 |
static int |
K3 |
static int |
M0 |
static int |
M1 |
static int |
M2 |
static int |
M3 |
Modifier and Type | Method and Description |
---|---|
static long |
agitate(long l) |
long |
hash(Bytes bytes)
Provide a 64-bit hash for the bytes in Bytes between the bytes.position() and bytes.limit();
|
long |
hash(Bytes bytes,
long offset,
long limit)
Provide a 64-bit hash for the bytes between offset and limit
|
static VanillaBytesHash |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VanillaBytesHash[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VanillaBytesHash INSTANCE
public static final int K0
public static final int K1
public static final int K2
public static final int K3
public static final int M0
public static final int M1
public static final int M2
public static final int M3
public static VanillaBytesHash[] values()
for (VanillaBytesHash c : VanillaBytesHash.values()) System.out.println(c);
public static VanillaBytesHash valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static long agitate(long l)
public long hash(Bytes bytes, long offset, long limit)
BytesHasher
hash
in interface BytesHasher
bytes
- to hashoffset
- the start inclusivelimit
- the end exclusivepublic long hash(Bytes bytes)
BytesHasher
hash
in interface BytesHasher
bytes
- to hashCopyright © 2019. All rights reserved.