public static class ObjectUtils.HashCode extends Object
| Constructor and Description |
|---|
HashCode() |
| Modifier and Type | Method and Description |
|---|---|
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(Object value)
Adds an object to the hash, using
Object.hashCode(). |
void |
addIdentical(List<?> values)
Adds a list of objects to the hash, checking if the objects implement
Deduplicable. |
void |
addIdentical(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(Object[] values)
Adds an array of objects to the hash, checking if the objects implement
Deduplicable. |
void |
addIdentity(Object value)
Adds an object to the hash using its identity (
System.identityHashCode). |
protected void |
addToHash(int value) |
int |
getHashCode() |
protected void addToHash(int value)
public void add(int value)
value - public void add(boolean value)
value - public void add(Object value)
Object.hashCode().value - public void addIdentical(Object value)
Deduplicable
and using the deduplication hash code in that case.value - public void addIdentity(Object value)
System.identityHashCode).value - public void addIdentical(Object[] values)
Deduplicable.values - addIdentical(Object)public void addIdentical(List<?> values)
Deduplicable.values - addIdentical(Object)public void add(JRPropertiesMap properties)
properties - public int getHashCode()
Copyright © 2017. All rights reserved.