The Equivalence with which to determine equality after normalizing the left-hand and right-hand values.
The Equivalence with which to determine equality after normalizing the left-hand and right-hand values.
In this trait's implementation, this val is initialized with the result of invoking Equivalence.default[A].
Thus default Equivalence is the default afterNormalizationEquivalence. This may be changed by overriding
afterNormalizationEquivalence in subclasses.
Returns a new NormalizingEquivalence that combines this and the passed Normalization.
Returns a new NormalizingEquivalence that combines this and the passed Normalization.
The normalized method of the NormalizingEquivalence's returned by this method returns a result
obtained by forwarding the passed value first to this NormalizingEquivalence's implementation of the method,
then passing that result to the passed Normalization's implementation of the method.
Essentially, the body of the composed normalized method is:
uniformityPassedToAnd.normalized(uniformityOnWhichAndWasInvoked.normalized(a))
a Normalization to 'and' with this one
a NormalizingEquivalence representing the composition of this and the passed Normalization
Determines the equality of two objects by normalizing the left-hand value, a, and the right-hand
value, b, then passing them to areEquivalent method of afterNormalizationEquivalence.
Determines the equality of two objects by normalizing the left-hand value, a, and the right-hand
value, b, then passing them to areEquivalent method of afterNormalizationEquivalence.
Both the left-hand value, a, and right-hand value, b, are normalized by passing them to the normalized method of this
NormalizingEquivalence.
a left-hand-side object being compared with another (right-hand-side one) for equality (e.g., a == b)
a right-hand-side object being compared with another (left-hand-side one) for equality (e.g., a == b)
true if the passed objects are "equal," as defined by this Equivalence instance
Converts this NormalizingEquivalence to a Normalization.
Converts this NormalizingEquivalence to a Normalization.
a Normalization whose normalized method
is implemented by forwarding to the normalized method of this NormalizingEquivalence.
An
Equivalence[A]implementation that determines the equality of two objects by normalizing one or both objects, then comparing the results using an “after normalization”Equivalencereferenced from theafterNormalizationEquivalencemember. By default, theafterNormalizationEquivalenceis an instance ofEquivalence.default[A].NormalizingEquivalenceis returned by theExplicitlyDSL's “afterbeing” syntax, using for theafterNormalizationEquivalencethe implicitEquivalencein scope for the type ofNormalizationpassed tobeing. Here's an example: