Hash

trait Hash[@specialized A] extends Eq[A] with Serializable

A type class used to represent a hashing scheme for objects of a given type. For any two instances x and y that are considered equivalent under the equivalence relation defined by this object, hash(x) should equal hash(y).

A type class used to represent a hashing scheme for objects of a given type. For any two instances x and y that are considered equivalent under the equivalence relation defined by this object, hash(x) should equal hash(y).

Authors

Tongfei Chen

Companion
object
trait Eq[A]
trait Serializable
class Any
class ByteOrder
class CharOrder
class EitherHash[A, B]
class IntOrder
class LazyListHash[A]
class ListHash[A]
class LongOrder
class MapHash[K, V]
class OptionHash[A]
class QueueHash[A]
class SeqHash[A]
class SetHash[A]
class SortedMapHash[K, V]
class SortedSetHash[A]
class StreamHash[A]
class UnitOrder
class VectorHash[A]

Value members

Abstract methods

def hash(x: A): Int
Implicitly added by catsKernelHashForArraySeq

Returns the hash code of the given object under this hashing scheme.

Returns the hash code of the given object under this hashing scheme.

def hash(x: A): Int
Implicitly added by catsKernelHashForFunction0

Returns the hash code of the given object under this hashing scheme.

Returns the hash code of the given object under this hashing scheme.

def hash(x: A): Int
Implicitly added by catsKernelHashForStream

Returns the hash code of the given object under this hashing scheme.

Returns the hash code of the given object under this hashing scheme.

def hash(x: A): Int
Implicitly added by catsKernelHashForList

Returns the hash code of the given object under this hashing scheme.

Returns the hash code of the given object under this hashing scheme.

def hash(x: A): Int
Implicitly added by catsKernelHashForVector

Returns the hash code of the given object under this hashing scheme.

Returns the hash code of the given object under this hashing scheme.

def hash(x: A): Int
Implicitly added by catsKernelHashForTuple1

Returns the hash code of the given object under this hashing scheme.

Returns the hash code of the given object under this hashing scheme.

def hash(x: A): Int
Implicitly added by catsKernelHashForSeq

Returns the hash code of the given object under this hashing scheme.

Returns the hash code of the given object under this hashing scheme.

def hash(x: A): Int
Implicitly added by catsKernelHashForQueue

Returns the hash code of the given object under this hashing scheme.

Returns the hash code of the given object under this hashing scheme.

def hash(x: A): Int
Implicitly added by catsKernelHashForOption

Returns the hash code of the given object under this hashing scheme.

Returns the hash code of the given object under this hashing scheme.

def hash(x: A): Int
Implicitly added by catsKernelHashForLazyList

Returns the hash code of the given object under this hashing scheme.

Returns the hash code of the given object under this hashing scheme.

def hash(x: A): Int
Implicitly added by catsKernelHashForSortedSet

Returns the hash code of the given object under this hashing scheme.

Returns the hash code of the given object under this hashing scheme.

def hash(x: A): Int

Returns the hash code of the given object under this hashing scheme.

Returns the hash code of the given object under this hashing scheme.

Inherited methods

def eqv(x: A, y: A): Boolean
Implicitly added by catsKernelHashForArraySeq

Returns true if x and y are equivalent, false otherwise.

Returns true if x and y are equivalent, false otherwise.

Inherited from
Eq
def eqv(x: A, y: A): Boolean
Implicitly added by catsKernelHashForFunction0

Returns true if x and y are equivalent, false otherwise.

Returns true if x and y are equivalent, false otherwise.

Inherited from
Eq
def eqv(x: A, y: A): Boolean
Implicitly added by catsKernelHashForStream

Returns true if x and y are equivalent, false otherwise.

Returns true if x and y are equivalent, false otherwise.

Inherited from
Eq
def eqv(x: A, y: A): Boolean
Implicitly added by catsKernelHashForList

Returns true if x and y are equivalent, false otherwise.

Returns true if x and y are equivalent, false otherwise.

Inherited from
Eq
def eqv(x: A, y: A): Boolean
Implicitly added by catsKernelHashForVector

Returns true if x and y are equivalent, false otherwise.

Returns true if x and y are equivalent, false otherwise.

Inherited from
Eq
def eqv(x: A, y: A): Boolean
Implicitly added by catsKernelHashForTuple1

Returns true if x and y are equivalent, false otherwise.

Returns true if x and y are equivalent, false otherwise.

Inherited from
Eq
def eqv(x: A, y: A): Boolean
Implicitly added by catsKernelHashForSeq

Returns true if x and y are equivalent, false otherwise.

Returns true if x and y are equivalent, false otherwise.

Inherited from
Eq
def eqv(x: A, y: A): Boolean
Implicitly added by catsKernelHashForQueue

Returns true if x and y are equivalent, false otherwise.

Returns true if x and y are equivalent, false otherwise.

Inherited from
Eq
def eqv(x: A, y: A): Boolean
Implicitly added by catsKernelHashForOption

Returns true if x and y are equivalent, false otherwise.

Returns true if x and y are equivalent, false otherwise.

Inherited from
Eq
def eqv(x: A, y: A): Boolean
Implicitly added by catsKernelHashForLazyList

Returns true if x and y are equivalent, false otherwise.

Returns true if x and y are equivalent, false otherwise.

Inherited from
Eq
def eqv(x: A, y: A): Boolean
Implicitly added by catsKernelHashForSortedSet

Returns true if x and y are equivalent, false otherwise.

Returns true if x and y are equivalent, false otherwise.

Inherited from
Eq
def eqv(x: A, y: A): Boolean

Returns true if x and y are equivalent, false otherwise.

Returns true if x and y are equivalent, false otherwise.

Inherited from
Eq
def neqv(x: A, y: A): Boolean
Implicitly added by catsKernelHashForArraySeq

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Inherited from
Eq
def neqv(x: A, y: A): Boolean
Implicitly added by catsKernelHashForFunction0

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Inherited from
Eq
def neqv(x: A, y: A): Boolean
Implicitly added by catsKernelHashForStream

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Inherited from
Eq
def neqv(x: A, y: A): Boolean
Implicitly added by catsKernelHashForList

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Inherited from
Eq
def neqv(x: A, y: A): Boolean
Implicitly added by catsKernelHashForVector

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Inherited from
Eq
def neqv(x: A, y: A): Boolean
Implicitly added by catsKernelHashForTuple1

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Inherited from
Eq
def neqv(x: A, y: A): Boolean
Implicitly added by catsKernelHashForSeq

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Inherited from
Eq
def neqv(x: A, y: A): Boolean
Implicitly added by catsKernelHashForQueue

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Inherited from
Eq
def neqv(x: A, y: A): Boolean
Implicitly added by catsKernelHashForOption

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Inherited from
Eq
def neqv(x: A, y: A): Boolean
Implicitly added by catsKernelHashForLazyList

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Inherited from
Eq
def neqv(x: A, y: A): Boolean
Implicitly added by catsKernelHashForSortedSet

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Inherited from
Eq
def neqv(x: A, y: A): Boolean

Returns false if x and y are equivalent, true otherwise.

Returns false if x and y are equivalent, true otherwise.

Inherited from
Eq