Normalizes the passed object.
Normalizes the passed object.
the object to normalize
the normalized form of the passed object
Indicates whether the passed object is an instance of type A.
Indicates whether the passed object is an instance of type A.
This method is invoked by the areEqual method of subclass NormalizedEquality to determine whether or not
b can be cast to A so that it can be safely passed to normalized.
To implement this method, simply call b.isInstanceOf[A] for the actual A type.
For example, if you are defining a NormalizedEquality[String], your isInstanceOf
method should look like:
def isInstanceOfA(b: Any) = b.isInstanceOf[String]
If you are defining a NormalizedEquality[xml.Node] your isInstanceOf method
should look like:
def isInstanceOfA(b: Any) = b.isInstanceOf[xml.Node]
the object to inspect to determine whether it is an instance of A
true if the passed object is an instance of A
Defines a custom way to normalize instances of a type.
This trait exists to enforce that
Normalizationinstances can be passed towhenBothAreandwhenAllAre, but notdecidedBy.the type whose normalization is being defined