A pair containing a key and an associated value called
the item. Used primarily to represent the elements of a
Map
. The type Entry<Key,Item>
may be abbreviated
Key->Item
. An instance of Entry
may be constructed
using the ->
operator:
String->Person entry = person.name->person;
no subtypes hierarchy
Initializer |
Entry(Key key, Item item) Parameters:
|
Attributes | |
coalesced | shared <Key->Item&Object>? coalesced An |
hash | shared actual Integer hash The hash value of the value, which allows the value to be an element of a hash-based set or key of a hash-based map. Implementations must respect the constraint that:
Therefore, a class which refines Because the Refines Object.hash |
item | shared Item item The item associated with the key. |
key | shared Key key The key used to access the entry. |
pair | shared [Key, Item] pair A pair (2 element tuple) with the key and item of this
entry. For any entry.pair == [entry.key,entry.item] |
string | shared actual String string A description of the entry in the form Refines Object.string |
Inherited Attributes |
Attributes inherited from: Object |
Methods | |
equals | shared actual Boolean equals(Object that) Determines if this entry is equal to the given entry. Two entries are equal if they have the same key and the same item.
Refines Object.equals |
Inherited Methods |
Methods inherited from: Object |