| Package | Description |
|---|---|
| org.magicwerk.brownies.collections.primitive |
This packages contains implementations of GapList for primitive data types.
|
| Modifier and Type | Class and Description |
|---|---|
class |
LongGapList
LongGapList combines the strengths of both ArrayList and LinkedList.
|
| Modifier and Type | Method and Description |
|---|---|
ILongList |
ILongList.copy()
Returns a shallow copy of this GapList instance
(the new list will contain the same elements as the source list, i.e. the elements themselves are not copied).
|
ILongList |
LongGapList.doCreate(int capacity) |
ILongList |
ILongList.getAll(int index,
int len)
Returns specified range of elements from list.
|
ILongList |
ILongList.getAll(long elem)
Returns all elements in the list equal to the specified element.
|
ILongList |
ILongList.removeAll(long elem)
Removes all equal elements.
|
abstract ILongList |
ILongList.unmodifiableList()
Returns an unmodifiable view of this list.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ILongList.addAll(ILongList list)
Adds all of the elements in the specified list into this list.
|
boolean |
ILongList.addAll(int index,
ILongList list)
Inserts all of the elements in the specified list into this
list, starting at the specified position.
|
static void |
ILongList.copy(ILongList src,
int srcIndex,
ILongList dst,
int dstIndex,
int len)
Copies elements from one GapList to another.
|
static void |
ILongList.move(ILongList src,
int srcIndex,
ILongList dst,
int dstIndex,
int len)
Moves elements from one GapList to another.
|
boolean |
ILongList.removeAll(ILongList coll) |
boolean |
ILongList.retainAll(ILongList coll) |
void |
ILongList.setAll(int index,
ILongList list)
Replaces the specified elements.
|
static void |
ILongList.swap(ILongList src,
int srcIndex,
ILongList dst,
int dstIndex,
int len)
Swaps elements from two GapLists.
|