Scala Library: scala.Equals
scala.Equals
An interface containing operations for equality. The only method not already
present in class AnyRef
is canEqual
.
Abstract Value Members From scala.Equals
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.
- that
- the value being probed for possible equality
- returns
- true if this instance can possibly equal
that
, otherwise false (defined at scala.Equals)
- true if this instance can possibly equal
Full Source:
Interested in Scala?
I send out weekly, personalized emails with articles and conference talks.
Subscribe now.