public enum VanillaBytesHasher extends Enum<VanillaBytesHasher> implements BytesHasher
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
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 VanillaBytesHasher |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VanillaBytesHasher[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VanillaBytesHasher INSTANCE
public static VanillaBytesHasher[] values()
for (VanillaBytesHasher c : VanillaBytesHasher.values()) System.out.println(c);
public static VanillaBytesHasher 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 long hash(Bytes bytes)
BytesHasher
hash
in interface BytesHasher
bytes
- to hashpublic long hash(Bytes bytes, long offset, long limit)
BytesHasher
hash
in interface BytesHasher
bytes
- to hashoffset
- the start inclusivelimit
- the end exclusiveCopyright © 2019. All rights reserved.