public static enum LibraryManager.HashAlgorithm extends Enum<LibraryManager.HashAlgorithm>
Enum Constant and Description |
---|
MD5
The MD5 hash algorithm.
|
SHA1
The SHA-1 hash algorithm.
|
Modifier and Type | Method and Description |
---|---|
static LibraryManager.HashAlgorithm |
getAlgorithm(String name)
Gets the hash algorithm corresponding to the given name.
|
com.google.common.hash.HashFunction |
getFunction() |
String |
getName() |
static LibraryManager.HashAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LibraryManager.HashAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LibraryManager.HashAlgorithm SHA1
public static final LibraryManager.HashAlgorithm MD5
public static LibraryManager.HashAlgorithm[] values()
for (LibraryManager.HashAlgorithm c : LibraryManager.HashAlgorithm.values()) System.out.println(c);
public static LibraryManager.HashAlgorithm 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 LibraryManager.HashAlgorithm getAlgorithm(String name)
name
- the name of the algorithmpublic com.google.common.hash.HashFunction getFunction()
public String getName()
Copyright © 2021. All rights reserved.