Searched refs:minCapacity (Results 1 – 3 of 3) sorted by relevance
55 public CircularArray(int minCapacity) { in CircularArray() argument56 if (minCapacity <= 0) { in CircularArray()59 int arrayCapacity = minCapacity; in CircularArray()62 if (Integer.bitCount(minCapacity) != 1) { in CircularArray()63 arrayCapacity = 1 << (Integer.highestOneBit(minCapacity) + 1); in CircularArray()
96 final int minCapacity = currentSize + count; in ensureCapacity() local97 if (minCapacity >= mValues.length) { in ensureCapacity()100 final int newCapacity = targetCap > minCapacity ? targetCap : minCapacity; in ensureCapacity()
95 final int minCapacity = currentSize + count; in ensureCapacity() local96 if (minCapacity >= mValues.length) { in ensureCapacity()99 final int newCapacity = targetCap > minCapacity ? targetCap : minCapacity; in ensureCapacity()