/** * Ensures this big array is at least the specified length. If the array is smaller, segments * are added until the array is larger then the specified length. */ public void ensureCapacity(long length) { if (capacity > length) { return; } grow(length); }
/** * Ensures this big array is at least the specified length. If the array is smaller, segments * are added until the array is larger then the specified length. */ public void ensureCapacity(long length) { if (capacity > length) { return; } grow(length); }