Defines methods to support the comparison of objects for equality.
type_t
, and specify that this definition be used with a collection type that accepts the xtd::collections::generic::iequality_comparer <type_t> generic interface. In the xtd framework, constructors of the xtd::collections::generic::dictionary <key_t, value_t> generic collection type accept this interface. contains
, index_of
, last_index_of
, and remove
methods of the xtd::collections::generic::dictionary <key_t, value_t> class and other generic collections. Public Methods | |
virtual bool | equals (const type_t &x, const type_t &y) const noexcept=0 |
Determines whether the specified objects are equal. | |
virtual xtd::size | get_hash_code (const type_t &obj) const noexcept=0 |
Returns a hash code for the specified object. | |