scala

trait Equals

[source: scala/Equals.scala]

trait Equals
extends AnyRef
An interface containing operations for equality. The only method not already present in class `AnyRef` is `canEqual`.
Direct Known Subclasses:
Product, IterableLike

Method Summary
abstract def canEqual (that : Any) : Boolean
A method that should be called from every well-designed equals method that is open to be overridden in a subclass. See Programming in Scala, Chapter 28 for discussion and design.
abstract def equals (that : Any) : Boolean
The equality method defined in `AnyRef`.
Methods inherited from AnyRef
getClass, hashCode, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
abstract def canEqual(that : Any) : Boolean
A method that should be called from every well-designed equals method that is open to be overridden in a subclass. See Programming in Scala, Chapter 28 for discussion and design.

abstract def equals(that : Any) : Boolean
The equality method defined in `AnyRef`.
Overrides
AnyRef.equals