Provides an EqualityConstraint[A, B] class for any two types A and B, enforcing the type constraint that B is implicitly convertible to A, given an implicit Equality[A].
Provides an EqualityConstraint[A, B] class for any two types A and B, enforcing the type constraint that B is implicitly convertible to A, given an implicit Equality[A].
The implicitly passed Equality[A] must be used to determine equality by the returned EqualityConstraint's
areEqual method.
This method is overridden and made implicit by subtraits
ConversionCheckedTripleEquals) and
ConversionCheckedLegacyTripleEquals, and
overriden as non-implicit by the other subtraits in this package.
an Equality[A] type class to which the EqualityConstraint.areEqual method will delegate to determine equality.
an implicit conversion from B to A
an EqualityConstraint[A, B] whose areEqual method delegates to the areEqual method of
the passed Equality[A].
Convert to an CheckingEqualizer that provides === and !== operators that result in Boolean and enforce a type constraint.
Convert to an CheckingEqualizer that provides === and !== operators that result in Boolean and enforce a type constraint.
This method is overridden and made implicit by subtraits TypeCheckedTripleEquals and ConversionCheckedTripleEquals, and overriden as
non-implicit by the other subtraits in this package.
the object whose type to convert to CheckingEqualizer.
if left is null.
Convert to an Equalizer that provides === and !== operators that
result in Boolean and enforce no type constraint.
Convert to an Equalizer that provides === and !== operators that
result in Boolean and enforce no type constraint.
This method is overridden and made implicit by subtrait TripleEquals and overriden as non-implicit by the other subtraits in this package.
the object whose type to convert to Equalizer.
if left is null.
Convert to a LegacyCheckingEqualizer that provides === and !== operators that result in Option[String] and
enforce a type constraint.
Convert to a LegacyCheckingEqualizer that provides === and !== operators that result in Option[String] and
enforce a type constraint.
This method is overridden and made implicit by subtraits TypeCheckedLegacyTripleEquals and ConversionCheckedLegacyTripleEquals, and
overriden as non-implicit by the other subtraits in this package.
the object whose type to convert to LegacyCheckingEqualizer.
if left is null.
Convert to a LegacyEqualizer that provides === and !== operators that
result in Option[String] and enforce no type constraint.
Convert to a LegacyEqualizer that provides === and !== operators that
result in Option[String] and enforce no type constraint.
This method is overridden and made implicit by subtrait LegacyTripleEquals and overriden as non-implicit by the other subtraits in this package.
the object whose type to convert to LegacyEqualizer.
if left is null.
Return an Equality[A] for any type A that determines equality via the == operator on type A.
Return an Equality[A] for any type A that determines equality via the == operator on type A.
a DefaultEquality for type A
Provides an EqualityConstraint[A, B] class for any two types A and B, enforcing the type constraint that A is implicitly convertible to B, given an implicit Equality[A].
Provides an EqualityConstraint[A, B] class for any two types A and B, enforcing the type constraint that A is implicitly convertible to B, given an implicit Equality[A].
The implicitly passed Equality[A] must be used to determine equality by the returned EqualityConstraint's
areEqual method.
This method is overridden and made implicit by subtraits
LowPriorityConversionCheckedConstraint (extended by
ConversionCheckedTripleEquals), and
LowPriorityConversionCheckedLegacyConstraint (extended by
ConversionCheckedLegacyTripleEquals), and
overriden as non-implicit by the other subtraits in this package.
an implicit conversion from A to B
an EqualityConstraint[A, B] whose areEqual method delegates to the areEqual method of
the passed Equality[A].
Provides an EqualityConstraint[A, B] class for any two types A and B, enforcing the type constraint that B must be a subtype of A, given an implicit Equality[A].
Provides an EqualityConstraint[A, B] class for any two types A and B, enforcing the type constraint that B must be a subtype of A, given an implicit Equality[A].
The implicitly passed Equality[A] must be used to determine equality by the returned EqualityConstraint's
areEqual method.
This method is overridden and made implicit by subtraits
TypeCheckedTripleEquals) and
TypeCheckedLegacyTripleEquals, and
overriden as non-implicit by the other subtraits in this package.
an Equality[A] type class to which the EqualityConstraint.areEqual method will delegate to determine equality.
evidence that B is a subype of A
an EqualityConstraint[A, B] whose areEqual method delegates to the areEqual method of
the passed Equality[A].
Provides an EqualityConstraint[A, B] class for any two types A and B, with no type constraint enforced, given an
implicit Equality[A].
Provides an EqualityConstraint[A, B] class for any two types A and B, with no type constraint enforced, given an
implicit Equality[A].
The implicitly passed Equality[A] must be used to determine equality by the returned EqualityConstraint's
areEqual method.
This method is overridden and made implicit by subtraits TripleEquals and LegacyTripleEquals, and
overriden as non-implicit by the other subtraits in this package.
an Equality[A] type class to which the EqualityConstraint.areEqual method will delegate to determine equality.
an EqualityConstraint[A, B] whose areEqual method delegates to the areEqual method of
the passed Equality[A].
Returns a TripleEqualsInvocationOnInterval[T], given an Interval[T], to facilitate
the “<left> should !== (<pivot> +- <tolerance>)”
syntax of Matchers.”“
Returns a TripleEqualsInvocationOnInterval[T], given an Interval[T], to facilitate
the “<left> should !== (<pivot> +- <tolerance>)”
syntax of Matchers.
the Interval[T] against which to compare the left-hand value
a TripleEqualsInvocationOnInterval wrapping the passed Interval[T] value, with
expectingEqual set to false.
Returns a TripleEqualsInvocation[Null], given a null reference, to facilitate
the “<left> should !== null” syntax
of Matchers.”“
Returns a TripleEqualsInvocation[Null], given a null reference, to facilitate
the “<left> should !== null” syntax
of Matchers.
a null reference
a TripleEqualsInvocation wrapping the passed null value, with expectingEqual
set to false.
Returns a TripleEqualsInvocation[T], given an object of type T, to facilitate
the “<left> should !== <right>” syntax
of Matchers.”“
Returns a TripleEqualsInvocation[T], given an object of type T, to facilitate
the “<left> should !== <right>” syntax
of Matchers.
the right-hand side value for an equality assertion
a TripleEqualsInvocation wrapping the passed right value, with expectingEqual
set to false.
Returns a TripleEqualsInvocationOnInterval[T], given an Interval[T], to facilitate
the “<left> should === (<pivot> +- <tolerance>)”
syntax of Matchers.”“
Returns a TripleEqualsInvocationOnInterval[T], given an Interval[T], to facilitate
the “<left> should === (<pivot> +- <tolerance>)”
syntax of Matchers.
the Interval[T] against which to compare the left-hand value
a TripleEqualsInvocationOnInterval wrapping the passed Interval[T] value, with
expectingEqual set to true.
Returns a TripleEqualsInvocation[Null], given a null reference, to facilitate
the “<left> should === null” syntax
of Matchers.”“
Returns a TripleEqualsInvocation[Null], given a null reference, to facilitate
the “<left> should === null” syntax
of Matchers.
a null reference
a TripleEqualsInvocation wrapping the passed null value, with expectingEqual
set to true.
Returns a TripleEqualsInvocation[T], given an object of type T, to facilitate
the “<left> should === <right>” syntax
of Matchers.”“
Returns a TripleEqualsInvocation[T], given an object of type T, to facilitate
the “<left> should === <right>” syntax
of Matchers.
the right-hand side value for an equality assertion
a TripleEqualsInvocation wrapping the passed right value, with expectingEqual
set to true.
Provides an EqualityConstraint[A, B] class for any two types A and B, enforcing the type constraint that A must be a subtype of B, given an implicit Equality[A].
Provides an EqualityConstraint[A, B] class for any two types A and B, enforcing the type constraint that A must be a subtype of B, given an implicit Equality[A].
The implicitly passed Equality[A] must be used to determine equality by the returned EqualityConstraint's
areEqual method.
This method is overridden and made implicit by subtraits
LowPriorityTypeCheckedConstraint (extended by
TypeCheckedTripleEquals), and
LowPriorityTypeCheckedLegacyConstraint (extended by
TypeCheckedLegacyTripleEquals), and
overriden as non-implicit by the other subtraits in this package.
an Equality[A] type class to which the EqualityConstraint.areEqual method
will delegate to determine equality.
evidence that A is a subype of B
an EqualityConstraint[A, B] whose areEqual method delegates to the
areEqual method of the passed Equality[A].
Provides an implicit conversion that will be applied only if a higher-priority implicit conversion declared a subtrait is not applicable.
The purpose of this trait is to make the
===operator symetric. In other words, a===invocation will be allowed if subtype relationship exists in either direction. For example, in the following expression, the left hand side is a subtype of the right hand side:But in the next expression, it the right hand side is a subtype of the left hand side
The first expression above is enabled by the implicit conversion
typeCheckedEqualityConstraintin traitsTypeCheckedTripleEqualsandTypeCheckedLegacyTripleEquals. The second expression above is enabled by the implicit conversionlowPriorityTypeCheckedEqualityConstraintin this trait.The reason these two implicit methods aren't both declared in the subtraits is that if the subtype relationship existed in both directions, they would conflict. This can happen when the exact same type is on both the left and right hand sides, because a type is a subtype of itself. By placing one of them in this supertrait, the higher priority conversion will be selected.