mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
Implement ArrayList#ensureCapacity
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
parent
eab3b8e448
commit
46a55bd024
@ -65,6 +65,10 @@ public class ArrayList<T> extends AbstractList<T> implements java.io.Serializabl
|
||||
return size;
|
||||
}
|
||||
|
||||
public void ensureCapacity(int capacity) {
|
||||
grow(capacity);
|
||||
}
|
||||
|
||||
public boolean contains(Object element) {
|
||||
for (int i = 0; i < size; ++i) {
|
||||
if (equal(element, array[i])) {
|
||||
|
Loading…
Reference in New Issue
Block a user