org.jboss.dna.common.util
Class HashCode
java.lang.Object
   org.jboss.dna.common.util.HashCode
org.jboss.dna.common.util.HashCode
- @Immutable
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.
 
| Method Summary | 
| static int | compute(Object... objects)Compute a combined hash code from the supplied objects.
 | 
 
 
HashCode
public HashCode()
compute
public static int compute(Object... objects)
- Compute a combined hash code from the supplied objects. This method always returns 0 if no objects are supplied.
 
- 
- Parameters:
- objects- the objects that should be used to compute the hash code
- Returns:
- the hash code
 
Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.