JavaScript is disabled on your browser.
ModeShape Distribution 3.8.0.Final
public class HashCode
extends Object
Utilities for easily computing hash codes. The algorithm should generally produce good distributions for use in hash-based
containers or collections, but as expected does always result in repeatable hash codes given the inputs.
Constructor Summary
Constructors
Constructor and Description
HashCode ()
Method Summary
Methods
Modifier and Type
Method and Description
protected static int
_compute (int seed,
Object ... objects)
Compute a combined hash code from the supplied objects using the supplied seed.
static int
compute (Object ... objects)
Compute a combined hash code from the supplied objects.
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Constructor Detail
HashCode
public HashCode()
Method Detail
_compute
protected static int _compute(int seed,
Object ... objects)
Compute a combined hash code from the supplied objects using the supplied seed.
Parameters: seed
- a value upon which the hash code will be based; may be 0objects
- the objects that should be used to compute the hash code
Returns: the hash code
ModeShape Distribution 3.8.0.Final
Copyright © 2008-2014 JBoss, a division of Red Hat . All Rights Reserved.