org.openphacts.nextprot.util
Class HashTool

java.lang.Object
  extended by org.apache.velocity.tools.generic.SafeConfig
      extended by org.openphacts.nextprot.util.HashTool

public class HashTool
extends org.apache.velocity.tools.generic.SafeConfig


Field Summary
 
Fields inherited from class org.apache.velocity.tools.generic.SafeConfig
LOCK_CONFIG_KEY, OLD_LOCK_CONFIG_KEY, SAFE_MODE_KEY
 
Constructor Summary
HashTool()
          Creates a new HashTool.
 
Method Summary
 Number adler(Object obj)
          Creates an Adler23 checksum from the given content.
 
Methods inherited from class org.apache.velocity.tools.generic.SafeConfig
configure, configure, isConfigLocked, isSafeMode, setLockConfig, setSafeMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashTool

public HashTool()
Creates a new HashTool.

Method Detail

adler

public Number adler(Object obj)
Creates an Adler23 checksum from the given content.

Parameters:
obj - the object for which the crc is calculated.
Returns:
a number object representing the string content of the object.


Copyright © 2012. All Rights Reserved.