net.sf.jasperreports.engine.util
Class ObjectUtils.HashCode

java.lang.Object
  extended by net.sf.jasperreports.engine.util.ObjectUtils.HashCode
Enclosing class:
ObjectUtils

public static class ObjectUtils.HashCode
extends java.lang.Object

Hash code creator for objects.


Constructor Summary
ObjectUtils.HashCode()
           
 
Method Summary
 void add(boolean value)
          Adds a boolean value to the hash.
 void add(int value)
          Adds an integer value to the hash.
 void add(JRPropertiesMap properties)
          Adds a set of properties to the hash.
 void add(java.lang.Object value)
          Adds an object to the hash, using Object.hashCode().
 void addIdentical(java.util.List<?> values)
          Adds a list of objects to the hash, checking if the objects implement Deduplicable.
 void addIdentical(java.lang.Object value)
          Adds an object to the hash, checking whether the object implements Deduplicable and using the deduplication hash code in that case.
 void addIdentical(java.lang.Object[] values)
          Adds an array of objects to the hash, checking if the objects implement Deduplicable.
 void addIdentity(java.lang.Object value)
          Adds an object to the hash using its identity (System.identityHashCode).
protected  void addToHash(int value)
           
 int getHashCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectUtils.HashCode

public ObjectUtils.HashCode()
Method Detail

addToHash

protected void addToHash(int value)

add

public void add(int value)
Adds an integer value to the hash.

Parameters:
value -

add

public void add(boolean value)
Adds a boolean value to the hash.

Parameters:
value -

add

public void add(java.lang.Object value)
Adds an object to the hash, using Object.hashCode().

Parameters:
value -

addIdentical

public void addIdentical(java.lang.Object value)
Adds an object to the hash, checking whether the object implements Deduplicable and using the deduplication hash code in that case.

Parameters:
value -

addIdentity

public void addIdentity(java.lang.Object value)
Adds an object to the hash using its identity (System.identityHashCode).

Parameters:
value -

addIdentical

public void addIdentical(java.lang.Object[] values)
Adds an array of objects to the hash, checking if the objects implement Deduplicable.

Parameters:
values -
See Also:
addIdentical(Object)

addIdentical

public void addIdentical(java.util.List<?> values)
Adds a list of objects to the hash, checking if the objects implement Deduplicable.

Parameters:
values -
See Also:
addIdentical(Object)

add

public void add(JRPropertiesMap properties)
Adds a set of properties to the hash.

Parameters:
properties -

getHashCode

public int getHashCode()


© 2001-2010 Jaspersoft Corporation www.jaspersoft.com