19package org.openoffice.xmerge.util;
21import java.util.ArrayList;
29 private final ArrayList<Integer>
list;
37 list =
new ArrayList<Integer>();
46 list =
new ArrayList<Integer>(initialCapacity);
56 list.ensureCapacity(minCapacity);
74 list.ensureCapacity(minCapacity);
76 int needToAdd = minCapacity -
list.size();
78 for (
int i = 0;
i < needToAdd;
i++) {
101 public void add(
int value) {
This is a convenience class used to create an ArrayList of integers.
void ensureCapacity(int minCapacity)
This method ensures that the list is large enough for minCapacity elements.
int size()
This method gets the size of the list.
final ArrayList< Integer > list
The list to hold our integers.
IntArrayList(int initialCapacity)
Constructor.
void ensureCapacityAndFill(int minCapacity, int fillValue)
This method ensures that the list is large enough for minCapacity elements.
void add(int value)
This method appends an element to the list.
IntArrayList()
Constructor.