Trait/Object

scala.util.hashing

Hashing

Related Docs: object Hashing | package hashing

Permalink

trait Hashing[T] extends Serializable

Hashing is a trait whose instances each represent a strategy for hashing instances of a type.

Hashing's companion object defines a default hashing strategy for all objects - it calls their ## method.

Note: when using a custom Hashing, make sure to use it with the Equiv such that if any two objects are equal, then their hash codes must be equal.

Annotations
@implicitNotFound( msg = ... )
Source
Hashing.scala
Since

2.10

Linear Supertypes
Serializable, java.io.Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Hashing
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def hash(x: T): Int

    Permalink