scala

Equals

trait Equals extends AnyRef

An interface containing operations for equality. The only method not already present in class AnyRef is canEqual.

known subclasses: Product, IterableLike

Inherits

  1. AnyRef
  2. Any

Value Members

  1. 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

  2. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

  3. def hashCode(): Int

    Returns a hash code value for the object

  4. def toString(): String

    Returns a string representation of the object