| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // TODO(alanknight): Replace with proper identity collection. Issue 4161 | 5 // TODO(alanknight): Replace with proper identity collection. Issue 4161 |
| 6 library identity_set; | 6 library identity_set; |
| 7 | 7 |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 // Hash map implementation with open addressing and quadratic probing. | 10 // Hash map implementation with open addressing and quadratic probing. |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 | 296 |
| 297 /** | 297 /** |
| 298 * This class represents a pair of two objects, used by LinkedHashMap | 298 * This class represents a pair of two objects, used by LinkedHashMap |
| 299 * to store a {key, value} in a list. | 299 * to store a {key, value} in a list. |
| 300 */ | 300 */ |
| 301 class _KeyValuePair<K, V> { | 301 class _KeyValuePair<K, V> { |
| 302 _KeyValuePair(this.key, this.value) {} | 302 _KeyValuePair(this.key, this.value) {} |
| 303 | 303 |
| 304 final K key; | 304 final K key; |
| 305 V value; | 305 V value; |
| 306 } | 306 } |
| 307 | |
| OLD | NEW |