public interface BoundedHashable
| Modifier and Type | Method and Description |
|---|---|
int |
boundedHash(int seed,
int limit)
Calculate a hash code for this object.
|
int boundedHash(int seed,
int limit)
seed - The seed is an initial value, or the accumulated
hash code from previous elements in a containing object.
Using zero as the seed is fine.limit - A limit on the number of sub-elements whose hash we
should calculate. This guards against cycles. Any recursive calls
should be done with a smaller value of limit, and no recursive
calls must be done when the limit is zero.Object#hashCode.