Hash

zio.prelude.Hash
See theHash companion object
trait Hash[-A] extends Equal[A]

Hash[A] provides implicit evidence that a value of type A can be hashed.

Attributes

Companion
object
Graph
Supertypes
trait Equal[A]
class Object
trait Matchable
class Any
Known subtypes
trait HashPartialOrd[A]
trait HashOrd[A]
Self type
Hash[A]

Members list

Value members

Abstract methods

def hash(a: A): Int
Implicitly added by ChunkHash

Returns the hash of the specified value.

Returns the hash of the specified value.

Attributes

def hash(a: A): Int
Implicitly added by ListHash

Returns the hash of the specified value.

Returns the hash of the specified value.

Attributes

def hash(a: A): Int
Implicitly added by MapHash

Returns the hash of the specified value.

Returns the hash of the specified value.

Attributes

def hash(a: A): Int
Implicitly added by NonEmptyChunkHash

Returns the hash of the specified value.

Returns the hash of the specified value.

Attributes

def hash(a: A): Int
Implicitly added by OptionHash

Returns the hash of the specified value.

Returns the hash of the specified value.

Attributes

def hash(a: A): Int
Implicitly added by VectorHash

Returns the hash of the specified value.

Returns the hash of the specified value.

Attributes

def hash(a: A): Int

Returns the hash of the specified value.

Returns the hash of the specified value.

Attributes

Concrete methods

override def contramap[B](f: B => A): Hash[B]

Constructs a Hash[B] given a Hash[A] and a function f to transform a B value into an A value. The instance will convert each B value into an A and hash the A values.

Constructs a Hash[B] given a Hash[A] and a function f to transform a B value into an A value. The instance will convert each B value into an A and hash the A values.

Attributes

Definition Classes

Inherited methods

final def both[B](that: => Equal[B]): Equal[(A, B)]
Implicitly added by ChunkHash

Constructs an Equal[(A, B)] given an Equal[A] and Equal[B] by first comparing the A values for equality and then comparing the B values for equality, if necessary.

Constructs an Equal[(A, B)] given an Equal[A] and Equal[B] by first comparing the A values for equality and then comparing the B values for equality, if necessary.

Attributes

Inherited from:
Equal
final def both[B](that: => Equal[B]): Equal[(A, B)]
Implicitly added by ListHash

Constructs an Equal[(A, B)] given an Equal[A] and Equal[B] by first comparing the A values for equality and then comparing the B values for equality, if necessary.

Constructs an Equal[(A, B)] given an Equal[A] and Equal[B] by first comparing the A values for equality and then comparing the B values for equality, if necessary.

Attributes

Inherited from:
Equal
final def both[B](that: => Equal[B]): Equal[(A, B)]
Implicitly added by MapHash

Constructs an Equal[(A, B)] given an Equal[A] and Equal[B] by first comparing the A values for equality and then comparing the B values for equality, if necessary.

Constructs an Equal[(A, B)] given an Equal[A] and Equal[B] by first comparing the A values for equality and then comparing the B values for equality, if necessary.

Attributes

Inherited from:
Equal
final def both[B](that: => Equal[B]): Equal[(A, B)]
Implicitly added by NonEmptyChunkHash

Constructs an Equal[(A, B)] given an Equal[A] and Equal[B] by first comparing the A values for equality and then comparing the B values for equality, if necessary.

Constructs an Equal[(A, B)] given an Equal[A] and Equal[B] by first comparing the A values for equality and then comparing the B values for equality, if necessary.

Attributes

Inherited from:
Equal
final def both[B](that: => Equal[B]): Equal[(A, B)]
Implicitly added by OptionHash

Constructs an Equal[(A, B)] given an Equal[A] and Equal[B] by first comparing the A values for equality and then comparing the B values for equality, if necessary.

Constructs an Equal[(A, B)] given an Equal[A] and Equal[B] by first comparing the A values for equality and then comparing the B values for equality, if necessary.

Attributes

Inherited from:
Equal
final def both[B](that: => Equal[B]): Equal[(A, B)]
Implicitly added by VectorHash

Constructs an Equal[(A, B)] given an Equal[A] and Equal[B] by first comparing the A values for equality and then comparing the B values for equality, if necessary.

Constructs an Equal[(A, B)] given an Equal[A] and Equal[B] by first comparing the A values for equality and then comparing the B values for equality, if necessary.

Attributes

Inherited from:
Equal
final def both[B](that: => Equal[B]): Equal[(A, B)]

Constructs an Equal[(A, B)] given an Equal[A] and Equal[B] by first comparing the A values for equality and then comparing the B values for equality, if necessary.

Constructs an Equal[(A, B)] given an Equal[A] and Equal[B] by first comparing the A values for equality and then comparing the B values for equality, if necessary.

Attributes

Inherited from:
Equal
final def bothWith[B, C](that: => Equal[B])(f: C => (A, B)): Equal[C]
Implicitly added by ChunkHash

Constructs an Equal[C] given an Equal[A], an Equal[B] and a function f to transform a C value into an (A, B). The instance will convert each C value into an (A, B), compare the A values for equality, and then compare the B values for equality if necessary.

Constructs an Equal[C] given an Equal[A], an Equal[B] and a function f to transform a C value into an (A, B). The instance will convert each C value into an (A, B), compare the A values for equality, and then compare the B values for equality if necessary.

Attributes

Inherited from:
Equal
final def bothWith[B, C](that: => Equal[B])(f: C => (A, B)): Equal[C]
Implicitly added by ListHash

Constructs an Equal[C] given an Equal[A], an Equal[B] and a function f to transform a C value into an (A, B). The instance will convert each C value into an (A, B), compare the A values for equality, and then compare the B values for equality if necessary.

Constructs an Equal[C] given an Equal[A], an Equal[B] and a function f to transform a C value into an (A, B). The instance will convert each C value into an (A, B), compare the A values for equality, and then compare the B values for equality if necessary.

Attributes

Inherited from:
Equal
final def bothWith[B, C](that: => Equal[B])(f: C => (A, B)): Equal[C]
Implicitly added by MapHash

Constructs an Equal[C] given an Equal[A], an Equal[B] and a function f to transform a C value into an (A, B). The instance will convert each C value into an (A, B), compare the A values for equality, and then compare the B values for equality if necessary.

Constructs an Equal[C] given an Equal[A], an Equal[B] and a function f to transform a C value into an (A, B). The instance will convert each C value into an (A, B), compare the A values for equality, and then compare the B values for equality if necessary.

Attributes

Inherited from:
Equal
final def bothWith[B, C](that: => Equal[B])(f: C => (A, B)): Equal[C]
Implicitly added by NonEmptyChunkHash

Constructs an Equal[C] given an Equal[A], an Equal[B] and a function f to transform a C value into an (A, B). The instance will convert each C value into an (A, B), compare the A values for equality, and then compare the B values for equality if necessary.

Constructs an Equal[C] given an Equal[A], an Equal[B] and a function f to transform a C value into an (A, B). The instance will convert each C value into an (A, B), compare the A values for equality, and then compare the B values for equality if necessary.

Attributes

Inherited from:
Equal
final def bothWith[B, C](that: => Equal[B])(f: C => (A, B)): Equal[C]
Implicitly added by OptionHash

Constructs an Equal[C] given an Equal[A], an Equal[B] and a function f to transform a C value into an (A, B). The instance will convert each C value into an (A, B), compare the A values for equality, and then compare the B values for equality if necessary.

Constructs an Equal[C] given an Equal[A], an Equal[B] and a function f to transform a C value into an (A, B). The instance will convert each C value into an (A, B), compare the A values for equality, and then compare the B values for equality if necessary.

Attributes

Inherited from:
Equal
final def bothWith[B, C](that: => Equal[B])(f: C => (A, B)): Equal[C]
Implicitly added by VectorHash

Constructs an Equal[C] given an Equal[A], an Equal[B] and a function f to transform a C value into an (A, B). The instance will convert each C value into an (A, B), compare the A values for equality, and then compare the B values for equality if necessary.

Constructs an Equal[C] given an Equal[A], an Equal[B] and a function f to transform a C value into an (A, B). The instance will convert each C value into an (A, B), compare the A values for equality, and then compare the B values for equality if necessary.

Attributes

Inherited from:
Equal
final def bothWith[B, C](that: => Equal[B])(f: C => (A, B)): Equal[C]

Constructs an Equal[C] given an Equal[A], an Equal[B] and a function f to transform a C value into an (A, B). The instance will convert each C value into an (A, B), compare the A values for equality, and then compare the B values for equality if necessary.

Constructs an Equal[C] given an Equal[A], an Equal[B] and a function f to transform a C value into an (A, B). The instance will convert each C value into an (A, B), compare the A values for equality, and then compare the B values for equality if necessary.

Attributes

Inherited from:
Equal
final def either[B](that: => Equal[B]): Equal[Either[A, B]]
Implicitly added by ChunkHash

Constructs an Equal[Either[A, B]] given an Equal[A] and an Equal[B]. The instance will compare the Either[A, B] values and if both are Right or Left compare them for equality.

Constructs an Equal[Either[A, B]] given an Equal[A] and an Equal[B]. The instance will compare the Either[A, B] values and if both are Right or Left compare them for equality.

Attributes

Inherited from:
Equal
final def either[B](that: => Equal[B]): Equal[Either[A, B]]
Implicitly added by ListHash

Constructs an Equal[Either[A, B]] given an Equal[A] and an Equal[B]. The instance will compare the Either[A, B] values and if both are Right or Left compare them for equality.

Constructs an Equal[Either[A, B]] given an Equal[A] and an Equal[B]. The instance will compare the Either[A, B] values and if both are Right or Left compare them for equality.

Attributes

Inherited from:
Equal
final def either[B](that: => Equal[B]): Equal[Either[A, B]]
Implicitly added by MapHash

Constructs an Equal[Either[A, B]] given an Equal[A] and an Equal[B]. The instance will compare the Either[A, B] values and if both are Right or Left compare them for equality.

Constructs an Equal[Either[A, B]] given an Equal[A] and an Equal[B]. The instance will compare the Either[A, B] values and if both are Right or Left compare them for equality.

Attributes

Inherited from:
Equal
final def either[B](that: => Equal[B]): Equal[Either[A, B]]
Implicitly added by NonEmptyChunkHash

Constructs an Equal[Either[A, B]] given an Equal[A] and an Equal[B]. The instance will compare the Either[A, B] values and if both are Right or Left compare them for equality.

Constructs an Equal[Either[A, B]] given an Equal[A] and an Equal[B]. The instance will compare the Either[A, B] values and if both are Right or Left compare them for equality.

Attributes

Inherited from:
Equal
final def either[B](that: => Equal[B]): Equal[Either[A, B]]
Implicitly added by OptionHash

Constructs an Equal[Either[A, B]] given an Equal[A] and an Equal[B]. The instance will compare the Either[A, B] values and if both are Right or Left compare them for equality.

Constructs an Equal[Either[A, B]] given an Equal[A] and an Equal[B]. The instance will compare the Either[A, B] values and if both are Right or Left compare them for equality.

Attributes

Inherited from:
Equal
final def either[B](that: => Equal[B]): Equal[Either[A, B]]
Implicitly added by VectorHash

Constructs an Equal[Either[A, B]] given an Equal[A] and an Equal[B]. The instance will compare the Either[A, B] values and if both are Right or Left compare them for equality.

Constructs an Equal[Either[A, B]] given an Equal[A] and an Equal[B]. The instance will compare the Either[A, B] values and if both are Right or Left compare them for equality.

Attributes

Inherited from:
Equal
final def either[B](that: => Equal[B]): Equal[Either[A, B]]

Constructs an Equal[Either[A, B]] given an Equal[A] and an Equal[B]. The instance will compare the Either[A, B] values and if both are Right or Left compare them for equality.

Constructs an Equal[Either[A, B]] given an Equal[A] and an Equal[B]. The instance will compare the Either[A, B] values and if both are Right or Left compare them for equality.

Attributes

Inherited from:
Equal
final def eitherWith[B, C](that: => Equal[B])(f: C => Either[A, B]): Equal[C]
Implicitly added by ChunkHash

Constructs an Equal[C] given an Equal[A], an Equal[B], and a function f to transform a C value into an Either[A, B]. The instance will convert each C value into an Either[A, B] and then if both are Right or Left compare them for equality.

Constructs an Equal[C] given an Equal[A], an Equal[B], and a function f to transform a C value into an Either[A, B]. The instance will convert each C value into an Either[A, B] and then if both are Right or Left compare them for equality.

Attributes

Inherited from:
Equal
final def eitherWith[B, C](that: => Equal[B])(f: C => Either[A, B]): Equal[C]
Implicitly added by ListHash

Constructs an Equal[C] given an Equal[A], an Equal[B], and a function f to transform a C value into an Either[A, B]. The instance will convert each C value into an Either[A, B] and then if both are Right or Left compare them for equality.

Constructs an Equal[C] given an Equal[A], an Equal[B], and a function f to transform a C value into an Either[A, B]. The instance will convert each C value into an Either[A, B] and then if both are Right or Left compare them for equality.

Attributes

Inherited from:
Equal
final def eitherWith[B, C](that: => Equal[B])(f: C => Either[A, B]): Equal[C]
Implicitly added by MapHash

Constructs an Equal[C] given an Equal[A], an Equal[B], and a function f to transform a C value into an Either[A, B]. The instance will convert each C value into an Either[A, B] and then if both are Right or Left compare them for equality.

Constructs an Equal[C] given an Equal[A], an Equal[B], and a function f to transform a C value into an Either[A, B]. The instance will convert each C value into an Either[A, B] and then if both are Right or Left compare them for equality.

Attributes

Inherited from:
Equal
final def eitherWith[B, C](that: => Equal[B])(f: C => Either[A, B]): Equal[C]
Implicitly added by NonEmptyChunkHash

Constructs an Equal[C] given an Equal[A], an Equal[B], and a function f to transform a C value into an Either[A, B]. The instance will convert each C value into an Either[A, B] and then if both are Right or Left compare them for equality.

Constructs an Equal[C] given an Equal[A], an Equal[B], and a function f to transform a C value into an Either[A, B]. The instance will convert each C value into an Either[A, B] and then if both are Right or Left compare them for equality.

Attributes

Inherited from:
Equal
final def eitherWith[B, C](that: => Equal[B])(f: C => Either[A, B]): Equal[C]
Implicitly added by OptionHash

Constructs an Equal[C] given an Equal[A], an Equal[B], and a function f to transform a C value into an Either[A, B]. The instance will convert each C value into an Either[A, B] and then if both are Right or Left compare them for equality.

Constructs an Equal[C] given an Equal[A], an Equal[B], and a function f to transform a C value into an Either[A, B]. The instance will convert each C value into an Either[A, B] and then if both are Right or Left compare them for equality.

Attributes

Inherited from:
Equal
final def eitherWith[B, C](that: => Equal[B])(f: C => Either[A, B]): Equal[C]
Implicitly added by VectorHash

Constructs an Equal[C] given an Equal[A], an Equal[B], and a function f to transform a C value into an Either[A, B]. The instance will convert each C value into an Either[A, B] and then if both are Right or Left compare them for equality.

Constructs an Equal[C] given an Equal[A], an Equal[B], and a function f to transform a C value into an Either[A, B]. The instance will convert each C value into an Either[A, B] and then if both are Right or Left compare them for equality.

Attributes

Inherited from:
Equal
final def eitherWith[B, C](that: => Equal[B])(f: C => Either[A, B]): Equal[C]

Constructs an Equal[C] given an Equal[A], an Equal[B], and a function f to transform a C value into an Either[A, B]. The instance will convert each C value into an Either[A, B] and then if both are Right or Left compare them for equality.

Constructs an Equal[C] given an Equal[A], an Equal[B], and a function f to transform a C value into an Either[A, B]. The instance will convert each C value into an Either[A, B] and then if both are Right or Left compare them for equality.

Attributes

Inherited from:
Equal
final def equal(l: A, r: A): Boolean
Implicitly added by ChunkHash

Returns whether two values of type A are equal.

Returns whether two values of type A are equal.

Attributes

Inherited from:
Equal
final def equal(l: A, r: A): Boolean
Implicitly added by ListHash

Returns whether two values of type A are equal.

Returns whether two values of type A are equal.

Attributes

Inherited from:
Equal
final def equal(l: A, r: A): Boolean
Implicitly added by MapHash

Returns whether two values of type A are equal.

Returns whether two values of type A are equal.

Attributes

Inherited from:
Equal
final def equal(l: A, r: A): Boolean
Implicitly added by NonEmptyChunkHash

Returns whether two values of type A are equal.

Returns whether two values of type A are equal.

Attributes

Inherited from:
Equal
final def equal(l: A, r: A): Boolean
Implicitly added by OptionHash

Returns whether two values of type A are equal.

Returns whether two values of type A are equal.

Attributes

Inherited from:
Equal
final def equal(l: A, r: A): Boolean
Implicitly added by VectorHash

Returns whether two values of type A are equal.

Returns whether two values of type A are equal.

Attributes

Inherited from:
Equal
final def equal(l: A, r: A): Boolean

Returns whether two values of type A are equal.

Returns whether two values of type A are equal.

Attributes

Inherited from:
Equal
final def notEqual(l: A, r: A): Boolean
Implicitly added by ChunkHash

Returns whether two values of type A are not equal.

Returns whether two values of type A are not equal.

Attributes

Inherited from:
Equal
final def notEqual(l: A, r: A): Boolean
Implicitly added by ListHash

Returns whether two values of type A are not equal.

Returns whether two values of type A are not equal.

Attributes

Inherited from:
Equal
final def notEqual(l: A, r: A): Boolean
Implicitly added by MapHash

Returns whether two values of type A are not equal.

Returns whether two values of type A are not equal.

Attributes

Inherited from:
Equal
final def notEqual(l: A, r: A): Boolean
Implicitly added by NonEmptyChunkHash

Returns whether two values of type A are not equal.

Returns whether two values of type A are not equal.

Attributes

Inherited from:
Equal
final def notEqual(l: A, r: A): Boolean
Implicitly added by OptionHash

Returns whether two values of type A are not equal.

Returns whether two values of type A are not equal.

Attributes

Inherited from:
Equal
final def notEqual(l: A, r: A): Boolean
Implicitly added by VectorHash

Returns whether two values of type A are not equal.

Returns whether two values of type A are not equal.

Attributes

Inherited from:
Equal
final def notEqual(l: A, r: A): Boolean

Returns whether two values of type A are not equal.

Returns whether two values of type A are not equal.

Attributes

Inherited from:
Equal
def toScala[A1 <: A]: Equiv[A1]
Implicitly added by ChunkHash

Attributes

Inherited from:
Equal
def toScala[A1 <: A]: Equiv[A1]
Implicitly added by ListHash

Attributes

Inherited from:
Equal
def toScala[A1 <: A]: Equiv[A1]
Implicitly added by MapHash

Attributes

Inherited from:
Equal
def toScala[A1 <: A]: Equiv[A1]
Implicitly added by NonEmptyChunkHash

Attributes

Inherited from:
Equal
def toScala[A1 <: A]: Equiv[A1]
Implicitly added by OptionHash

Attributes

Inherited from:
Equal
def toScala[A1 <: A]: Equiv[A1]
Implicitly added by VectorHash

Attributes

Inherited from:
Equal
def toScala[A1 <: A]: Equiv[A1]

Attributes

Inherited from:
Equal