structs/ArrayList
-
class ArrayList<T>
-
-
static method new → ArrayList<T>
-
method init
-
static method new~withCapacity(capacity: Int) → ArrayList<T>
-
method init~withCapacity(capacity: Int)
-
static method new~withData(data: T *, size: Int) → ArrayList<T>
-
method init~withData(data: T *, size: Int)
-
method add(element: T)
-
method add~withIndex(index: Int, element: T)
-
method clear
-
method get(index: Int) → T
-
method indexOf(element: T) → Int
-
method lastIndexOf(element: T) → Int
-
method removeAt(index: Int) → T
-
method remove(element: T) → Bool
- Removes a single instance of the specified element from this list,
if it is present (optional operation).
@return true if at least one occurence of the element has been
removed
-
method set(index: Int, element: T) → T
- Replaces the element at the specified position in this list with
the specified element.
-
method size → Int
- @return the number of elements in this list.
-
method ensureCapacity(newSize: Int)
- Increases the capacity of this ArrayList instance, if necessary,
to ensure that it can hold at least the number of elements
specified by the minimum capacity argument.
-
method grow
- private
-
method checkIndex(index: Int)
- private
-
method iterator → Iterator<T>
-
method clone → ArrayList<T>
-
method toArray → Pointer
-
data → T *
-
capacity → Int
-
size → Int
-
class ArrayListIterator<T>
-
-
static method new~iter(list: ArrayList<T>) → ArrayListIterator<T>
-
method init~iter(list: ArrayList<T>)
-
method hasNext → Bool
-
method next → T
-
method hasPrev → Bool
-
method prev → T
-
method remove → Bool
-
list → ArrayList<T>
-
index → Int