Searched refs:minCapacity (Results 1 – 4 of 4) sorted by relevance
57 public CircularIntArray(int minCapacity) { in CircularIntArray() argument58 if (minCapacity < 1) { in CircularIntArray()61 if (minCapacity > (2 << 29)) { in CircularIntArray()68 if (Integer.bitCount(minCapacity) != 1) { in CircularIntArray()69 arrayCapacity = Integer.highestOneBit(minCapacity - 1) << 1; in CircularIntArray()71 arrayCapacity = minCapacity; in CircularIntArray()
56 public CircularArray(int minCapacity) { in CircularArray() argument57 if (minCapacity < 1) { in CircularArray()60 if (minCapacity > (2 << 29)) { in CircularArray()67 if (Integer.bitCount(minCapacity) != 1) { in CircularArray()68 arrayCapacity = Integer.highestOneBit(minCapacity - 1) << 1; in CircularArray()70 arrayCapacity = minCapacity; in CircularArray()
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()
115 final int minCapacity = currentSize + count; in ensureCapacity() local116 if (minCapacity >= mValues.length) { in ensureCapacity()119 final int newCapacity = targetCap > minCapacity ? targetCap : minCapacity; in ensureCapacity()