Ds\Hashable::equals

(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().

Список параметров

obj

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

Возвращаемые значения

TRUE if equal, FALSE otherwise.

Коментарии

404 Not Found

404 Not Found


nginx

    Поддержать сайт на родительском проекте КГБ