mirror of
https://github.com/corda/corda.git
synced 2025-06-13 12:48:18 +00:00
Implement LinkedHashMap
This implementation is intentionally simple. If and when the need arises, we can always implement a more performant version. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
@ -93,7 +93,7 @@ public class HashMap<K, V> implements Map<K, V> {
|
||||
array = newArray;
|
||||
}
|
||||
|
||||
private Cell<K, V> find(Object key) {
|
||||
protected Cell<K, V> find(Object key) {
|
||||
if (array != null) {
|
||||
int index = helper.hash(key) & (array.length - 1);
|
||||
for (Cell<K, V> c = array[index]; c != null; c = c.next()) {
|
||||
|
Reference in New Issue
Block a user