Equality

object Equality

Companion object for trait Equality that provides factory methods for producing Equality instances.

Companion:
class
Source:
Equality.scala
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[A](uniformity: Uniformity[A]): NormalizingEquality[A]

Produces a NormalizingEquality[A] whose normalized, normalizedCanHandle, and normalizedOrSame methods delegate to the passed Uniformity[A].

Produces a NormalizingEquality[A] whose normalized, normalizedCanHandle, and normalizedOrSame methods delegate to the passed Uniformity[A].

Type parameters:
A

the type of passed Uniformity and returned NormalizingEquality.

Value parameters:
uniformity

the Uniformity to which the returned NormalizingEquality should delegate.

Source:
Equality.scala

Implicits

Implicits

implicit def default[A]: Equality[A]

Provides default Equality implementations for the specified type whose areEqual method first calls .deep on any Array (on either the left or right side), then compares the resulting objects with ==.

Provides default Equality implementations for the specified type whose areEqual method first calls .deep on any Array (on either the left or right side), then compares the resulting objects with ==.

Returns:

a default Equivalence[A]

Source:
Equality.scala