EitherHash

cats.kernel.instances.EitherHash
class EitherHash[A, B](implicit A: Hash[A], B: Hash[B]) extends EitherEq[A, B], Hash[Either[A, B]]

Attributes

Source
EitherInstances.scala
Graph
Supertypes
trait Hash[Either[A, B]]
class EitherEq[A, B]
trait Eq[Either[A, B]]
trait Serializable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def hash(x: Either[A, B]): 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.

Attributes

Source
EitherInstances.scala

Inherited methods

def eqv(x: Either[A, B], y: Either[A, B]): Boolean

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

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

Attributes

Inherited from:
EitherEq
Source
EitherInstances.scala
def neqv(x: Either[A, B], y: Either[A, B]): Boolean

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

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

Attributes

Inherited from:
Eq
Source
Eq.scala