Searched refs:expectedMaxSize (Results 1 – 1 of 1) sorted by relevance
227 public IdentityHashMap(int expectedMaxSize) { in IdentityHashMap() argument228 if (expectedMaxSize < 0) in IdentityHashMap()230 + expectedMaxSize); in IdentityHashMap()231 init(capacity(expectedMaxSize)); in IdentityHashMap()241 private static int capacity(int expectedMaxSize) { in capacity() argument244 (expectedMaxSize > MAXIMUM_CAPACITY / 3) ? MAXIMUM_CAPACITY : in capacity()245 (expectedMaxSize <= 2 * MINIMUM_CAPACITY / 3) ? MINIMUM_CAPACITY : in capacity()246 Integer.highestOneBit(expectedMaxSize + (expectedMaxSize << 1)); in capacity()