This is a convenience class used to create an ArrayList
of integers.
More...
|
final ArrayList< Integer > | list |
| The list to hold our integers. More...
|
|
This is a convenience class used to create an ArrayList
of integers.
Definition at line 26 of file IntArrayList.java.
◆ IntArrayList() [1/2]
org.openoffice.xmerge.util.IntArrayList.IntArrayList |
( |
| ) |
|
|
inline |
◆ IntArrayList() [2/2]
org.openoffice.xmerge.util.IntArrayList.IntArrayList |
( |
int |
initialCapacity | ) |
|
|
inline |
Constructor.
- Parameters
-
initialCapacity | Initial capacity of the list. |
Definition at line 45 of file IntArrayList.java.
◆ add()
void org.openoffice.xmerge.util.IntArrayList.add |
( |
int |
value | ) |
|
|
inline |
This method appends an element to the list.
- Parameters
-
value | The integer value that we assign to the element that we are appending to the list. |
Definition at line 101 of file IntArrayList.java.
References Integer, and value.
◆ ensureCapacity()
void org.openoffice.xmerge.util.IntArrayList.ensureCapacity |
( |
int |
minCapacity | ) |
|
|
inline |
This method ensures that the list is large enough for minCapacity
elements.
- Parameters
-
minCapacity | The minimum capacity of the list. |
Definition at line 55 of file IntArrayList.java.
◆ ensureCapacityAndFill()
void org.openoffice.xmerge.util.IntArrayList.ensureCapacityAndFill |
( |
int |
minCapacity, |
|
|
int |
fillValue |
|
) |
| |
|
inline |
This method ensures that the list is large enough for minCapacity
elements.
It also fills in the new slots in the list with the integer value input as fillValue
.
- Parameters
-
minCapacity | The minimum capacity of the list. |
fillValue | This method adds in an integer for each slot that was added to ensure that the list meets the minimum capacity. fillValue is the value used as the initial value of these added elements. |
Definition at line 72 of file IntArrayList.java.
References i, and Integer.
◆ get()
int org.openoffice.xmerge.util.IntArrayList.get |
( |
int |
index | ) |
|
|
inline |
This method gets the integer value stored in element index.
- Parameters
-
index | The index in the list of the element we wish to get the value from. |
- Returns
- The value of the data stored in element index.
Definition at line 113 of file IntArrayList.java.
References index.
◆ set()
void org.openoffice.xmerge.util.IntArrayList.set |
( |
int |
index, |
|
|
int |
value |
|
) |
| |
|
inline |
This method sets an element of the list to the input integer value.
- Parameters
-
index | The index in the list of the element we wish to set. |
value | The integer value that we assign to the selected element of the list. |
Definition at line 91 of file IntArrayList.java.
References index, Integer, and value.
◆ size()
int org.openoffice.xmerge.util.IntArrayList.size |
( |
| ) |
|
|
inline |
This method gets the size of the list.
- Returns
- The size of the list.
Definition at line 122 of file IntArrayList.java.
◆ list
final ArrayList<Integer> org.openoffice.xmerge.util.IntArrayList.list |
|
private |
The documentation for this class was generated from the following file: