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 TypeMethodDescriptionvoid
add
(boolean value) Adds a boolean value to the hash.void
add
(int value) Adds an integer value to the hash.void
Adds an object to the hash, usingObject.hashCode().
void
add
(JRPropertiesMap properties) Adds a set of properties to the hash.void
addIdentical
(Object value) Adds an object to the hash, checking whether the object implementsDeduplicable
and using the deduplication hash code in that case.void
addIdentical
(Object[] values) Adds an array of objects to the hash, checking if the objects implementDeduplicable
.void
addIdentical
(List<?> values) Adds a list of objects to the hash, checking if the objects implementDeduplicable
.void
addIdentity
(Object value) Adds an object to the hash using its identity (System.identityHashCode
).protected void
addToHash
(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 implementsDeduplicable
and 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()
-