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 | Source Codeshared <Key->Item&Object>? coalesced An Since 1.2.0 |
hash | Source Codeshared 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 In general, Note that when executing on a Java Virtual Machine, the
64-bit Refines Object.hash |
item | Source Codeshared Item item The item associated with the key. |
key | Source Codeshared Key key The key used to access the entry. |
pair | Source Codeshared [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 | Source Codeshared actual String string A description of the entry in the form Refines Object.string |
Inherited Attributes |
Attributes inherited from: Object |
Methods | |
equals | Source Codeshared 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 |