open fun equals(other: Any?): Boolean
(source)
Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:
Note that the ==
operator in Kotlin code is translated into a call to equals when objects on both sides of the
operator are not null.