Package org.duracloud.common.util
Enum ChecksumUtil.Algorithm
- java.lang.Object
-
- java.lang.Enum<ChecksumUtil.Algorithm>
-
- org.duracloud.common.util.ChecksumUtil.Algorithm
-
- All Implemented Interfaces:
Serializable,Comparable<ChecksumUtil.Algorithm>
- Enclosing class:
- ChecksumUtil
public static enum ChecksumUtil.Algorithm extends Enum<ChecksumUtil.Algorithm>
This class encapsulates the valid values for checksum algorithms. *
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChecksumUtil.AlgorithmfromString(String input)StringtoString()static ChecksumUtil.AlgorithmvalueOf(String name)Returns the enum constant of this type with the specified name.static ChecksumUtil.Algorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MD2
public static final ChecksumUtil.Algorithm MD2
-
MD5
public static final ChecksumUtil.Algorithm MD5
-
SHA_1
public static final ChecksumUtil.Algorithm SHA_1
-
SHA_256
public static final ChecksumUtil.Algorithm SHA_256
-
SHA_384
public static final ChecksumUtil.Algorithm SHA_384
-
SHA_512
public static final ChecksumUtil.Algorithm SHA_512
-
-
Method Detail
-
values
public static ChecksumUtil.Algorithm[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ChecksumUtil.Algorithm c : ChecksumUtil.Algorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChecksumUtil.Algorithm valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromString
public static ChecksumUtil.Algorithm fromString(String input)
-
toString
public String toString()
- Overrides:
toStringin classEnum<ChecksumUtil.Algorithm>
-
-