Equality

org.scalactic.Equality
See theEquality companion trait
object Equality

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

Attributes

Companion
trait
Source
Equality.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Equality.type

Members list

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.

Attributes

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 ==.

Attributes

Returns

a default Equivalence[A]

Source
Equality.scala