Package akka.util
Class HashCode$
- java.lang.Object
-
- akka.util.HashCode$
-
public class HashCode$ extends java.lang.ObjectSet of methods which allow easy implementation ofhashCode.Example:
override def hashCode: Int = { var result = HashCode.SEED //collect the contributions of various fields result = HashCode.hash(result, fPrimitive) result = HashCode.hash(result, fObject) result = HashCode.hash(result, fArray) result }
-
-
Constructor Summary
Constructors Constructor Description HashCode$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description inthash(int seed, boolean value)inthash(int seed, char value)inthash(int seed, double value)inthash(int seed, float value)inthash(int seed, int value)inthash(int seed, long value)inthash(int seed, java.lang.Object any)intSEED()
-
-
-
Field Detail
-
MODULE$
public static final HashCode$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
SEED
public int SEED()
-
hash
public int hash(int seed, java.lang.Object any)
-
hash
public int hash(int seed, boolean value)
-
hash
public int hash(int seed, char value)
-
hash
public int hash(int seed, int value)
-
hash
public int hash(int seed, long value)
-
hash
public int hash(int seed, float value)
-
hash
public int hash(int seed, double value)
-
-