object Equality
Companion object for trait Equality
that provides factory methods for producing Equality
instances.
- Source
- Equality.scala
- Alphabetic
- By Inheritance
- Equality
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def apply[A](uniformity: Uniformity[A]): NormalizingEquality[A]
Produces a
NormalizingEquality[A]
whosenormalized
,normalizedCanHandle
, andnormalizedOrSame
methods delegate to the passedUniformity[A]
.Produces a
NormalizingEquality[A]
whosenormalized
,normalizedCanHandle
, andnormalizedOrSame
methods delegate to the passedUniformity[A]
.- A
the type of passed
Uniformity
and returnedNormalizingEquality
.- uniformity
the
Uniformity
to which the returnedNormalizingEquality
should delegate.
- implicit def default[A]: Equality[A]
Provides default
Equality
implementations for the specified type whoseareEqual
method first calls.deep
on anyArray
(on either the left or right side), then compares the resulting objects with==
.Provides default
Equality
implementations for the specified type whoseareEqual
method first calls.deep
on anyArray
(on either the left or right side), then compares the resulting objects with==
.- returns
a default
Equivalence[A]