An implementation of EqualityConstraint
for two types A
and B
that requires an Equality[B]
and a conversion function from A
to B
.
Trait containing an implicit conversion that adds an asAny
method to
anything, which returns the same object as type Any
.
An implementation of EqualityConstraint
for two types A
and B
that requires an Equality[A]
and a conversion function from B
to A
.
An implementation of EqualityConstraint
for two types A
and B
that requires an Equality[A]
to
which its areEqual
method can delegate an equality comparison.
Class used via an implicit conversion to enable two objects to be compared with
===
and !==
with a Boolean
result and an enforced type constraint between
two object types.
Provides ===
and !==
operators that return Boolean
, delegate the equality determination
to an Equality
type class, and require that either the types of the two values compared are in a subtype/supertype
relationship, or that an implicit conversion is available that can convert from one type to the other.
Provides ===
and !==
operators that return Boolean
, delegate the equality determination
to an Equality
type class, and require that either the types of the two values compared are in a subtype/supertype
relationship, or that an implicit conversion is available that can convert from one type to the other.
Defines a custom way to determine equality for a type.
A default Equality
type class implementation (which can be used for any type) whose
areEqual
method compares the passed objects with ==
, calling .deep
first on any passed object that is an array.
An Equality
implementation that determines the equality of two objects by normalizing
both objects, if possible, and then comparing the results using default equality (as defined by
the areEqual
method of DefaultEquality
).
Defines a custom way to determine equality for a type.
Abstract class used to enforce type constraints for equality checks.
Trait that defines abstract methods used to enforce compile-time type constraints for equality comparisons, and defines ===
and !==
operators
used by matchers.
Class used via an implicit conversion to enable any two objects to be compared with
===
and !==
with a Boolean
result and no enforced type constraint between
two object types.
Provides decidedBy
and whenBothAre
syntax, which facilitates the
explicit specification of Equality[T]
and/or Normalization[T]
where
Equality[T]
is taken implicitly.
Class representing an interval (i.e., range) between two numbers.
Class used via an implicit conversion to enable any two objects to be compared with
===
and !==
with an Option[String]
result and an enforced type constraint between
two object types.
Class used via an implicit conversion to enable any two objects to be compared with
===
and !==
with an Option[String]
result and no enforced type constraint between
two object types.
Provides ===
and !==
operators that return Boolean
, delegate the equality determination
to an Equality
type class, and require no relationship between the types of the two values compared.
Provides an implicit conversion that will be applied only if a higher-priority implicit conversion declared a subtrait is not applicable.
Provides an implicit conversion that will be applied only if a higher-priority implicit conversion declared a subtrait is not applicable.
Defines a custom way to normalize instances of a type.
An Equality
implementation that determines the equality of two objects by normalizing
both objects, if possible, and then comparing the results using default equality (as defined by
the areEqual
method of DefaultEquality
).
Provides methods that produce Normalization[String]
instances for various
ways to normalize strings.
Trait containing an implicit conversion that adds a +-
method to Numeric
types, which enables
intervals to be expressed in terms of a pivot and tolerance.
Provides ===
and !==
operators that return Boolean
, delegate the equality determination
to an Equality
type class, and require no relationship between the types of the two values compared.
Facilitates the “should ===
” and “should !==
” syntax of ScalaTest's matchers DSL.”“”“
Facilitates the “should === (x += y)
” and “should !== (x += y)
” syntax of ScalaTest's matchers DSL.”“”“
Provides ===
and !==
operators that return Boolean
, delegate the equality determination
to an Equality
type class, and require the types of the two values compared to be in a subtype/supertype
relationship.
Provides ===
and !==
operators that return Boolean
, delegate the equality determination
to an Equality
type class, and require the types of the two values compared to be in a subtype/supertype
relationship.
Companion object to trait AsAny
that facilitates the importing of AsAny
members as
an alternative to mixing it in.
Companion object to trait ConversionCheckedLegacyTripleEquals
that facilitates the importing of ConversionCheckedLegacyTripleEquals
members as
an alternative to mixing it in.
Companion object to trait ConversionCheckedTripleEquals
that facilitates the importing of ConversionCheckedTripleEquals
members as
an alternative to mixing it in.
Companion object to trait AsAny
that facilitates the importing of AsAny
members as
an alternative to mixing it in.
Companion object to trait LegacyTripleEquals
that facilitates the importing of LegacyTripleEquals
members as
an alternative to mixing it in.
Companion object to trait StringNormalizations
that provides an
alternative to mixing it in.
Companion object to trait Tolerance
that facilitates the importing of Tolerance
members as
an alternative to mixing it in.
Companion object to trait TripleEquals
that facilitates the importing of TripleEquals
members as
an alternative to mixing it in.
Companion object to trait TypeCheckedLegacyTripleEquals
that facilitates the importing of TypeCheckedLegacyTripleEquals
members as
an alternative to mixing it in.
Companion object to trait TypeCheckedTripleEquals
that facilitates the importing of TypeCheckedTripleEquals
members as
an alternative to mixing it in.