Searched defs:minCapacity (Results 1 - 11 of 11) sorted by relevance

/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/ior/
H A DByteBuffer.java123 private void ensureCapacityHelper(int minCapacity) { argument
125 if (minCapacity > oldCapacity) {
129 if (newCapacity < minCapacity) {
130 newCapacity = minCapacity;
/openjdk7/jdk/src/share/classes/java/io/
H A DByteArrayOutputStream.java85 * @param minCapacity the desired minimum capacity
86 * @throws OutOfMemoryError if {@code minCapacity < 0}. This is
88 * {@code (long) Integer.MAX_VALUE + (minCapacity - Integer.MAX_VALUE)}.
90 private void ensureCapacity(int minCapacity) { argument
92 if (minCapacity - buf.length > 0)
93 grow(minCapacity);
100 * @param minCapacity the desired minimum capacity
102 private void grow(int minCapacity) { argument
106 if (newCapacity - minCapacity < 0)
107 newCapacity = minCapacity;
[all...]
/openjdk7/jdk/src/share/classes/java/util/
H A DAbstractCollection.java236 private static int hugeCapacity(int minCapacity) { argument
237 if (minCapacity < 0) // overflow
240 return (minCapacity > MAX_ARRAY_SIZE) ?
H A DComparableTimSort.java849 * @param minCapacity the minimum required capacity of the tmp array
852 private Object[] ensureCapacity(int minCapacity) { argument
853 if (tmp.length < minCapacity) {
854 // Compute smallest power of 2 > minCapacity
855 int newSize = minCapacity;
864 newSize = minCapacity;
H A DPriorityQueue.java274 * @param minCapacity the desired minimum capacity
276 private void grow(int minCapacity) { argument
284 newCapacity = hugeCapacity(minCapacity);
288 private static int hugeCapacity(int minCapacity) { argument
289 if (minCapacity < 0) // overflow
291 return (minCapacity > MAX_ARRAY_SIZE) ?
H A DTimSort.java882 * @param minCapacity the minimum required capacity of the tmp array
885 private T[] ensureCapacity(int minCapacity) { argument
886 if (tmp.length < minCapacity) {
887 // Compute smallest power of 2 > minCapacity
888 int newSize = minCapacity;
897 newSize = minCapacity;
H A DArrayList.java188 * @param minCapacity the desired minimum capacity
190 public void ensureCapacity(int minCapacity) { argument
198 if (minCapacity > minExpand) {
199 ensureExplicitCapacity(minCapacity);
203 private void ensureCapacityInternal(int minCapacity) { argument
205 minCapacity = Math.max(DEFAULT_CAPACITY, minCapacity);
208 ensureExplicitCapacity(minCapacity);
211 private void ensureExplicitCapacity(int minCapacity) { argument
215 if (minCapacity
233 grow(int minCapacity) argument
245 hugeCapacity(int minCapacity) argument
[all...]
H A DVector.java213 * {@code minCapacity}, then its capacity is increased by replacing its
219 * is still smaller than {@code minCapacity}, then the new capacity will
220 * be {@code minCapacity}.
222 * @param minCapacity the desired minimum capacity
224 public synchronized void ensureCapacity(int minCapacity) { argument
225 if (minCapacity > 0) {
227 ensureCapacityHelper(minCapacity);
239 private void ensureCapacityHelper(int minCapacity) { argument
241 if (minCapacity - elementData.length > 0)
242 grow(minCapacity);
253 grow(int minCapacity) argument
265 hugeCapacity(int minCapacity) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/awt/util/
H A DIdentityArrayList.java168 * @param minCapacity the desired minimum capacity
170 public void ensureCapacity(int minCapacity) { argument
173 if (minCapacity > oldCapacity) {
176 if (newCapacity < minCapacity)
177 newCapacity = minCapacity;
178 // minCapacity is usually close to size, so this is a win:
/openjdk7/jdk/src/share/classes/javax/swing/
H A DDefaultListModel.java118 * @param minCapacity the desired minimum capacity
121 public void ensureCapacity(int minCapacity) { argument
122 delegate.ensureCapacity(minCapacity);
/openjdk7/jdk/src/share/classes/sun/security/ssl/
H A DOutputRecord.java241 private void ensureCapacity(int minCapacity) { argument
243 if (minCapacity > buf.length) {
244 buf = Arrays.copyOf(buf, minCapacity);

Completed in 2031 milliseconds