VALUE - is the generic type of the objects to hash.public abstract class AbstractHashCodeFunction<VALUE> extends Object implements HashCodeFunction<VALUE>
HashCodeFunction. It contains the handling of null
values.| Constructor and Description |
|---|
AbstractHashCodeFunction()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
hashCode(VALUE value) |
protected abstract int |
hashCodeNotNull(VALUE value) |
public int hashCode(VALUE value)
hashCode in interface HashCodeFunction<VALUE>value - is the object to hash.hash code of the given value. The default implementation will
simply return value.hashCode().protected abstract int hashCodeNotNull(VALUE value)
value - is the object to hash. Will NOT be null.hash code of the given value.hashCode(Object)Copyright © 2001–2016 mmm-Team. All rights reserved.