Collections

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;

By: Gavin

- `Anything`
  - `Object`
    - `Entry`

- `Entry`
  - `Object`
    - `Anything`

no subtypes hierarchy

Initializer
`Entry(Key key, Item item)` Parameters: `key` The key used to access the entry. `item` The item associated with the key.

Attributes
`coalesced` | Source Code `shared <Key->Item&Object>? coalesced` An `Entry` with the key and item of this entry if this entry's item is non-null, or `null` otherwise.
`hash` | Source Code `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: if `x==y` then `x.hash==y.hash`. Therefore, a class which refines `Object.equals()` must also refine `hash`. Because the `Integer` type is platform-dependent a compiler for a given platform is permitted to further manipulate the calculated hash for an object, and the resulting hash may differ between platforms. Refines `Object.hash`
`item` | Source Code `shared Item item` The item associated with the key.
`key` | Source Code `shared Key key` The key used to access the entry.
`pair` | Source Code `shared [Key, Item] pair` A pair (2 element tuple) with the key and item of this entry. For any `entry`:
    entry.pair == [entry.key,entry.item]
`string` | Source Code `shared actual String string` A description of the entry in the form `key->item`. If `item` is `null`, its string representation is the string `"<null>"`. Refines `Object.string`

Inherited Attributes
Attributes inherited from: `Object` `hash`, `string`

Methods
`equals` | Source Code `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. The keys are considered the same if they are equal, in the sense of value equality. Two items are considered the same if they are both null or if neither is null and they are equal. Refines `Object.equals`

Inherited Methods
Methods inherited from: `Object` `equals()`