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)
.
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
-
eqv(
T x, T y) → bool -
Returns
true
ifx
andy
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
ifx
andy
are equivalent,true
otherwise.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromUniversalHashCode<
A> () → Hash< A> -
Constructs a
Hash
instance by using the universalhashCode
function and the universal equality relation.