Entry<K, V> class

Similar to a MapEntry, but correctly implements equals (== comparing key and value), hashcode and Comparable.compareTo.

Implemented types

Constructors

Entry(K key, V value)
const

Properties

hashCode int
The hash code for this object.
no setteroverride
key → K
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → V
final

Methods

compareTo(Entry<K, V> other) int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Static Methods

from<K, V>(MapEntry<K, V> entry) Entry<K, V>