o

akka.util

HashCode

object HashCode

Set of methods which allow easy implementation of hashCode.

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
 }

Source
HashCode.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HashCode
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. val SEED: Int
  2. def hash(seed: Int, value: Double): Int
  3. def hash(seed: Int, value: Float): Int
  4. def hash(seed: Int, value: Long): Int
  5. def hash(seed: Int, value: Int): Int
  6. def hash(seed: Int, value: Char): Int
  7. def hash(seed: Int, value: Boolean): Int
  8. def hash(seed: Int, any: Any): Int