T - Element typepublic interface WArrayList<T> extends WCollection<T>
| Modifier and Type | Method and Description |
|---|---|
void |
fillW(int from,
int to,
T value)
Sets given range of elements to a specified value.
|
void |
getIntoW(int index,
T to)
Get element at given index in the array, storing it into 'to' argument
|
void |
popIntoW(T to)
Pop value from the end of the array, storing it into 'to' argument
|
void |
setW(int index,
T value)
Set element at given index in the array
|
void |
size(int newSize)
Sets the size of this
|
void |
sort()
Sort the array in ascending order
|
void |
trim()
Trims this array list so that the capacity is equal to the size.
|
addW, capacity, clear, fastForEachW, fastForEachWhileW, fastIteratorW, fastIteratorW, getElementTypeOps, readElements, setCapacity, size, writeElementsvoid size(int newSize)
If the specified size is smaller than the current size,
the last elements are discarded.
Otherwise, they are filled with 0/null/false.
newSize - the new size.void trim()
ArrayList.trimToSize()void popIntoW(T to)
to - Object to store value intovoid getIntoW(int index,
T to)
index - Indexto - Object to store value intovoid setW(int index,
T value)
index - Indexvalue - Valuevoid fillW(int from,
int to,
T value)
from - From index (inclusive)to - To index (exclusive)value - Valuevoid sort()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.