| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: Must return a new size at least as big as to hold
elementsCount + expectedAdditions.Current size of the array (buffer). This number should comply with
the strategy's policies (it is a result of initial rounding or further growCalls). It can
also be zero, indicating the growth from an empty buffer. currentBufferLength, int Number of elements stored in the buffer. elementsCount, int Expected number of additions (resize hint). expectedAdditions)
|
| grow | back to summary |
|---|---|
public int grow(int currentBufferLength, int elementsCount, int expectedAdditions) throws BufferAllocationException
| |