LibreOffice Module xmerge (master) 1
|
This is a convenience class used to create an ArrayList
of integers.
More...
Public Member Functions | |
IntArrayList () | |
Constructor. More... | |
IntArrayList (int initialCapacity) | |
Constructor. More... | |
void | ensureCapacity (int minCapacity) |
This method ensures that the list is large enough for minCapacity elements. More... | |
void | ensureCapacityAndFill (int minCapacity, int fillValue) |
This method ensures that the list is large enough for minCapacity elements. More... | |
void | set (int index, int value) |
This method sets an element of the list to the input integer value. More... | |
void | add (int value) |
This method appends an element to the list. More... | |
int | get (int index) |
This method gets the integer value stored in element index. More... | |
int | size () |
This method gets the size of the list. More... | |
Private Attributes | |
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.
|
inline |
Constructor.
Creates the list with 0 length.
Definition at line 36 of file IntArrayList.java.
References org.openoffice.xmerge.util.IntArrayList.list.
|
inline |
Constructor.
initialCapacity | Initial capacity of the list. |
Definition at line 45 of file IntArrayList.java.
References org.openoffice.xmerge.util.IntArrayList.list.
|
inline |
This method appends an element to the list.
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, org.openoffice.xmerge.util.IntArrayList.list, and value.
|
inline |
This method ensures that the list is large enough for minCapacity
elements.
minCapacity | The minimum capacity of the list. |
Definition at line 55 of file IntArrayList.java.
References org.openoffice.xmerge.util.IntArrayList.list.
|
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
.
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, Integer, and org.openoffice.xmerge.util.IntArrayList.list.
This method gets the integer value stored in element index.
index | The index in the list of the element we wish to get the value from. |
Definition at line 113 of file IntArrayList.java.
References index, and org.openoffice.xmerge.util.IntArrayList.list.
This method sets an element of the list to the input integer value.
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, org.openoffice.xmerge.util.IntArrayList.list, and value.
|
inline |
This method gets the size of the list.
Definition at line 122 of file IntArrayList.java.
References org.openoffice.xmerge.util.IntArrayList.list.
|
private |
The list to hold our integers.
Definition at line 29 of file IntArrayList.java.
Referenced by org.openoffice.xmerge.util.IntArrayList.add(), org.openoffice.xmerge.util.IntArrayList.ensureCapacity(), org.openoffice.xmerge.util.IntArrayList.ensureCapacityAndFill(), org.openoffice.xmerge.util.IntArrayList.get(), org.openoffice.xmerge.util.IntArrayList.IntArrayList(), org.openoffice.xmerge.util.IntArrayList.set(), and org.openoffice.xmerge.util.IntArrayList.size().