# A HashCollection is an array of HashNode[K] indexed by the K hash value
private class HashCollection[K: Object, N: HashNode[K], E]
special Collection[E]
# A HashCollection is an array of HashNode[K] indexed by the K hash value
private class HashCollection[K: Object, N: HashNode[K], E]
special Collection[E]
attr _capacity: Int = 0 # Size of _array
redef readable attr _length: Int = 0 # Number of items in the map
attr _capacity: Int = 0 # Size of _array
redef readable attr _length: Int = 0 # Number of items in the map
- readable attr _first_item: N = null # First added item (used to visit items in nice order)
- attr _last_item: N = null # Last added item (same)
+ readable attr _first_item: nullable N = null # First added item (used to visit items in nice order)
+ attr _last_item: nullable N = null # Last added item (same)
# Fisrt step: look in the last indexed elt
if k == _last_accessed_key then return _last_accessed_index
# Fisrt step: look in the last indexed elt
if k == _last_accessed_key then return _last_accessed_index