* Updates a value in the index
(key: TKey, oldItem: any, newItem: any)
| 148 | * Updates a value in the index |
| 149 | */ |
| 150 | update(key: TKey, oldItem: any, newItem: any): void { |
| 151 | this.remove(key, oldItem) |
| 152 | this.add(key, newItem) |
| 153 | } |
| 154 | |
| 155 | /** |
| 156 | * Builds the index from a collection of entries |