Home
last modified time | relevance | path

Searched refs:expectedMaxSize (Results 1 – 1 of 1) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
DIdentityHashMap.java227 public IdentityHashMap(int expectedMaxSize) { in IdentityHashMap() argument
228 if (expectedMaxSize < 0) in IdentityHashMap()
230 + expectedMaxSize); in IdentityHashMap()
231 init(capacity(expectedMaxSize)); in IdentityHashMap()
241 private static int capacity(int expectedMaxSize) { in capacity() argument
244 (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()