static enum Hashing.ChecksumType extends java.lang.Enum<Hashing.ChecksumType> implements Supplier<java.util.zip.Checksum>
Modifier and Type | Field and Description |
---|---|
private int |
bits |
Modifier and Type | Method and Description |
---|---|
abstract java.util.zip.Checksum |
get()
Retrieves an instance of the appropriate type.
|
static Hashing.ChecksumType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Hashing.ChecksumType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Hashing.ChecksumType CRC_32
public static final Hashing.ChecksumType ADLER_32
public static Hashing.ChecksumType[] values()
for (Hashing.ChecksumType c : Hashing.ChecksumType.values()) System.out.println(c);
public static Hashing.ChecksumType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract java.util.zip.Checksum get()
Supplier