equals

open operator override fun equals(other: Any?): Boolean(source)

Checks if the current object is equal to the given object.

The current object is considered equal to the given object if and only if:

  • They refer to the same instance

  • The given object is not null and belongs to the same class as the current object

  • The values of the values property of both objects are equal

Return

true if the objects are equal, false otherwise

Parameters

other

The object to compare with the current object