GoLang Ds\Hashable::equals

request it (283)
GoLang replacement for PHP's Ds\Hashable::equals [edit | history]

Do you know a GoLang replacement for PHP's Ds\Hashable::equals? Write it!

PHP Ds\Hashable::equals

PHP original manual for Ds\Hashable::equals [ show | php.net ]


(PECL ds >= 1.0.0)

Ds\Hashable::equalsDetermines whether an object is equal to the current instance


abstract public bool Ds\Hashable::equals ( object $obj )

Determines whether another object is equal to the current instance.

This method allows objects to be used as keys in structures such as Ds\Map and Ds\Set, or any other lookup structure that honors this interface.


It's guaranteed that obj is an instance of the same class.


It's important that objects which are equal also have the same hash value. See Ds\Hashable::hash().



The object to compare the current instance to, which is always an instance of the same class.

Return Values

TRUE if equal, FALSE otherwise.