org.duracloud.common.util
Enum ChecksumUtil.Algorithm

java.lang.Object
  extended by java.lang.Enum<ChecksumUtil.Algorithm>
      extended by 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. *


Enum Constant Summary
MD2
           
MD5
           
SHA_1
           
SHA_256
           
SHA_384
           
SHA_512
           
 
Method Summary
static ChecksumUtil.Algorithm fromString(String input)
           
 String toString()
           
static ChecksumUtil.Algorithm valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
NullPointerException - if the argument is null

fromString

public static ChecksumUtil.Algorithm fromString(String input)

toString

public String toString()
Overrides:
toString in class Enum<ChecksumUtil.Algorithm>


Copyright © 2009-2012 DuraSpace. All Rights Reserved.