OptionHash

cats.kernel.instances.OptionHash
class OptionHash[A](implicit A: Hash[A]) extends OptionEq[A], Hash[Option[A]]

Attributes

Source
OptionInstances.scala
Graph
Supertypes
trait Hash[Option[A]]
class OptionEq[A]
trait Eq[Option[A]]
trait Serializable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def hash(x: Option[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.

Attributes

Source
OptionInstances.scala

Inherited methods

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

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

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

Attributes

Inherited from:
OptionEq
Source
OptionInstances.scala
def neqv(x: Option[A], y: Option[A]): 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