public enum HashAlgoEnum extends Enum<HashAlgoEnum>
| Enum Constant and Description |
|---|
ADDITIVE
加法hash
|
AP
ap hash
|
BERNSTEIN
bernstein hash
|
BKDR
bkdr hash
|
DEK
dek hash
|
DJB
djb hash
|
ELF
elf hash
|
FNV
fnv hash
|
JAVA
java自带hash
|
JS
js hash
|
MIX
min hash
|
ONEBYONE
onebyone hash
|
PJW
pjw hash
|
ROTATING
旋转hash
|
RS
rs hash
|
SDBM
sdbm hash
|
| Modifier and Type | Method and Description |
|---|---|
static HashAlgoEnum |
getEnum(String value) |
String |
getValue() |
long |
hash(String key) |
static HashAlgoEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HashAlgoEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HashAlgoEnum ADDITIVE
public static final HashAlgoEnum ROTATING
public static final HashAlgoEnum ONEBYONE
public static final HashAlgoEnum BERNSTEIN
public static final HashAlgoEnum FNV
public static final HashAlgoEnum RS
public static final HashAlgoEnum JS
public static final HashAlgoEnum PJW
public static final HashAlgoEnum ELF
public static final HashAlgoEnum BKDR
public static final HashAlgoEnum SDBM
public static final HashAlgoEnum DJB
public static final HashAlgoEnum DEK
public static final HashAlgoEnum AP
public static final HashAlgoEnum JAVA
public static final HashAlgoEnum MIX
private String value
public static HashAlgoEnum[] values()
for (HashAlgoEnum c : HashAlgoEnum.values()) System.out.println(c);
public static HashAlgoEnum 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(String key)
public String getValue()
public static HashAlgoEnum getEnum(String value)
Copyright © 2015. All rights reserved.