Method ensureCapacity(int minCapacity)
Return type: void
Member of:
java.util.ArrayList
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
groups.ensureCapacity(groupLevel);
2
((ArrayList)result). ensureCapacity(size);
3
ensureCapacity(size() + collection.size());
4
ensureCapacity(size() + collection.size());
5
rows.ensureCapacity(model.getRowCount());
6
arraylist1.ensureCapacity(i);
7
subComponents.ensureCapacity(initComponents.length);
8
temp.ensureCapacity(capacity);
9
temp.ensureCapacity(capacity);
10
dataStore.ensureCapacity(size);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.