cz.cuni.jagrlib
Enum HashFunction.HashType

java.lang.Object
  extended by java.lang.Enum<HashFunction.HashType>
      extended by cz.cuni.jagrlib.HashFunction.HashType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<HashFunction.HashType>
Enclosing class:
HashFunction

public static enum HashFunction.HashType
extends java.lang.Enum<HashFunction.HashType>

Implemented hash-functions.


Enum Constant Summary
HASH_AP
          Arash Partow.
HASH_BKDR
          Brian Kernighan, Dennis Ritchie.
HASH_DEK
          Donald E.
HASH_DJB
          Daniel J.
HASH_ELF
          ELF (UNIX).
HASH_JS
          Justin Sobel.
HASH_LCG
          LCG-based.
HASH_PJW
          Peter J.
HASH_RS
          Robert Sedgwick.
HASH_SDBM
          SDBM database.
 
Method Summary
static HashFunction.HashType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static HashFunction.HashType[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

HASH_LCG

public static final HashFunction.HashType HASH_LCG
LCG-based.


HASH_RS

public static final HashFunction.HashType HASH_RS
Robert Sedgwick.


HASH_JS

public static final HashFunction.HashType HASH_JS
Justin Sobel.


HASH_PJW

public static final HashFunction.HashType HASH_PJW
Peter J. Weinberger.


HASH_ELF

public static final HashFunction.HashType HASH_ELF
ELF (UNIX).


HASH_BKDR

public static final HashFunction.HashType HASH_BKDR
Brian Kernighan, Dennis Ritchie.


HASH_SDBM

public static final HashFunction.HashType HASH_SDBM
SDBM database.


HASH_DJB

public static final HashFunction.HashType HASH_DJB
Daniel J. Bernstein.


HASH_DEK

public static final HashFunction.HashType HASH_DEK
Donald E. Knuth.


HASH_AP

public static final HashFunction.HashType HASH_AP
Arash Partow.

Method Detail

values

public static HashFunction.HashType[] 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 (HashFunction.HashType c : HashFunction.HashType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static HashFunction.HashType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null