Hash<T> class abstract

A type class used to represent a hashing scheme for objects of a given type.

For any two instances x and y that are considered equivalent under the equivalence relation defined by this object, hash(x) should equal hash(y).

Inheritance

Constructors

Hash()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

and(Eq<T> eq) Eq<T>
Return an Eq that gives the result of and of eq1 and eq2.
inherited
contramap<A>(T map(A)) Eq<A>
Return an Eq instance based on a parameter of type T extracted from a class A.
inherited
eqv(T x, T y) bool
Returns true if x and y are equivalent, false otherwise.
inherited
hash(T x) int
Returns the hash code of the given object under this hashing scheme.
override
neqv(T x, T y) bool
Returns false if x and y are equivalent, true otherwise.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
or(Eq<T> eq) Eq<T>
Return an Eq that gives the result of or of this Eq and eq.
inherited
toString() String
A string representation of this object.
inherited
xor(Eq<T> eq) Eq<T>
Return an Eq that gives the result of xor of this Eq and eq.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromUniversalHashCode<A>() Hash<A>
Constructs a Hash instance by using the universal hashCode function and the universal equality relation.