Package net.sf.jasperreports.engine.util
Class ObjectUtils.HashCode
java.lang.Object
net.sf.jasperreports.engine.util.ObjectUtils.HashCode
- Enclosing class:
ObjectUtils
Hash code creator for objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(boolean value) Adds a boolean value to the hash.voidadd(int value) Adds an integer value to the hash.voidAdds an object to the hash, usingObject.hashCode().voidadd(JRPropertiesMap properties) Adds a set of properties to the hash.voidaddIdentical(Object value) Adds an object to the hash, checking whether the object implementsDeduplicableand using the deduplication hash code in that case.voidaddIdentical(Object[] values) Adds an array of objects to the hash, checking if the objects implementDeduplicable.voidaddIdentical(List<?> values) Adds a list of objects to the hash, checking if the objects implementDeduplicable.voidaddIdentity(Object value) Adds an object to the hash using its identity (System.identityHashCode).protected voidaddToHash(int value) int
-
Constructor Details
-
HashCode
public HashCode()
-
-
Method Details
-
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
Adds an object to the hash, usingObject.hashCode().- Parameters:
value-
-
addIdentical
Adds an object to the hash, checking whether the object implementsDeduplicableand using the deduplication hash code in that case.- Parameters:
value-
-
addIdentity
Adds an object to the hash using its identity (System.identityHashCode).- Parameters:
value-
-
addIdentical
Adds an array of objects to the hash, checking if the objects implementDeduplicable.- Parameters:
values-- See Also:
-
addIdentical
Adds a list of objects to the hash, checking if the objects implementDeduplicable.- Parameters:
values-- See Also:
-
add
Adds a set of properties to the hash.- Parameters:
properties-
-
getHashCode
public int getHashCode()
-