Defines methods to support the comparison of objects for equality.
Public Methods | |
| virtual auto | equals (const type_t &x, const type_t &y) const noexcept -> bool=0 |
| Determines whether the specified objects are equal. | |
| virtual auto | get_hash_code (const type_t &obj) const noexcept -> xtd::size=0 |
| Returns a hash code for the specified object. | |
|
nodiscardpure virtualnoexcept |
Determines whether the specified objects are equal.
| x | The first object of type type_t to compare. |
| y | The seco,d object of type type_t to compare. |
Implemented in xtd::basic_string_comparer< char_t >, and xtd::collections::generic::equality_comparer< type_t >.
|
nodiscardpure virtualnoexcept |
Returns a hash code for the specified object.
| obj | The xtd::object for which a hash code is to be returned. |
Implemented in xtd::basic_string_comparer< char_t >, and xtd::collections::generic::equality_comparer< type_t >.