Provides functionality necessary for being used as a key in a
HashSet. In addition to
the operators inherited from
Key provides the ability to compute a hash code for an
object. A hash code is a number with the following properties:
- It is stable. Hash codes do not change during the lifetime of the object.
- If two objects compare equal, their hash codes are guaranteed to be equal.
- If two objects compare unequal, their hash codes are unlikely to be equal.
- Source Code:
- View Source
Returns a hash code for this object. While hash codes must be stable within a single run of a program, they are not, in general, guaranteed to remain stable across different runs of the same program - in particular, future versions of Frost may choose to use different hashing algorithms.