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.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
and(
Eq< T> eq) → Eq< T> -
Return an
Eq
that gives the result of and ofeq1
andeq2
.inherited -
contramap<
A>( T map(A)) → Eq< A> -
Return an Eq instance based on a parameter of type
T
extracted from a classA
.inherited -
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
-
or(
Eq< T> eq) → Eq< T> -
Return an
Eq
that gives the result of or of this Eq andeq
.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 andeq
.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.