Searched defs:expectedMaxSize (Results 1 - 1 of 1) sorted by relevance

/openjdk7/jdk/src/share/classes/java/util/
H A DIdentityHashMap.java216 * @param expectedMaxSize the expected maximum size of the map
217 * @throws IllegalArgumentException if <tt>expectedMaxSize</tt> is negative
219 public IdentityHashMap(int expectedMaxSize) { argument
220 if (expectedMaxSize < 0)
221 throw new IllegalArgumentException("expectedMaxSize is negative: "
222 + expectedMaxSize);
223 init(capacity(expectedMaxSize));
230 * (3 * expectedMaxSize)/2, if such a number exists. Otherwise
231 * returns MAXIMUM_CAPACITY. If (3 * expectedMaxSize)/2 is negative, it
234 private int capacity(int expectedMaxSize) { argument
[all...]

Completed in 2151 milliseconds