MCPcopy Create free account
hub / github.com/ReadyTalk/avian / insert

Method insert

classpath/java/util/HashMap.java:105–113  ·  view source on GitHub ↗
(Cell<K, V> cell)

Source from the content-addressed store, hash-verified

103 }
104
105 private void insert(Cell<K, V> cell) {
106 ++ size;
107
108 grow();
109
110 int index = cell.hashCode() & (array.length - 1);
111 cell.setNext(array[index]);
112 array[index] = cell;
113 }
114
115 public void remove(Cell<K, V> cell) {
116 int index = cell.hashCode() & (array.length - 1);

Callers 2

putCellMethod · 0.95
putMethod · 0.95

Calls 3

growMethod · 0.95
hashCodeMethod · 0.65
setNextMethod · 0.65

Tested by

no test coverage detected