MCPcopy Create free account
hub / github.com/antlr/codebuff / init

Method init

output/java_guava/1.4.18/HashBiMap.java:128–138  ·  view source on GitHub ↗
(int expectedSize)

Source from the content-addressed store, hash-verified

126 }
127
128 private void init(int expectedSize) {
129 checkNonnegative(expectedSize, "expectedSize");
130 int tableSize = Hashing.closedTableSize(expectedSize, LOAD_FACTOR);
131 this.hashTableKToV = createTable(tableSize);
132 this.hashTableVToK = createTable(tableSize);
133 this.firstInKeyInsertionOrder = null;
134 this.lastInKeyInsertionOrder = null;
135 this.size = 0;
136 this.mask = tableSize - 1;
137 this.modCount = 0;
138 }
139
140 /**
141 * Finds and removes {@code entry} from the bucket linked lists in both the

Callers 2

HashBiMapMethod · 0.95
readObjectMethod · 0.95

Calls 3

closedTableSizeMethod · 0.95
createTableMethod · 0.95
checkNonnegativeMethod · 0.45

Tested by

no test coverage detected