| Package | Description |
|---|---|
| org.magicwerk.brownies.collections.primitive |
This packages contains implementations of GapList for primitive data types.
|
| Modifier and Type | Class and Description |
|---|---|
class |
IntGapList
IntGapList combines the strengths of both ArrayList and LinkedList.
|
| Modifier and Type | Method and Description |
|---|---|
IIntList |
IIntList.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).
|
IIntList |
IntGapList.doCreate(int capacity) |
IIntList |
IIntList.getAll(int elem)
Returns all elements in the list equal to the specified element.
|
IIntList |
IIntList.getAll(int index,
int len)
Returns specified range of elements from list.
|
IIntList |
IIntList.removeAll(int elem)
Removes all equal elements.
|
abstract IIntList |
IIntList.unmodifiableList()
Returns an unmodifiable view of this list.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
IIntList.addAll(IIntList list)
Adds all of the elements in the specified list into this list.
|
boolean |
IIntList.addAll(int index,
IIntList list)
Inserts all of the elements in the specified list into this
list, starting at the specified position.
|
static void |
IIntList.copy(IIntList src,
int srcIndex,
IIntList dst,
int dstIndex,
int len)
Copies elements from one GapList to another.
|
static void |
IIntList.move(IIntList src,
int srcIndex,
IIntList dst,
int dstIndex,
int len)
Moves elements from one GapList to another.
|
boolean |
IIntList.removeAll(IIntList coll) |
boolean |
IIntList.retainAll(IIntList coll) |
void |
IIntList.setAll(int index,
IIntList list)
Replaces the specified elements.
|
static void |
IIntList.swap(IIntList src,
int srcIndex,
IIntList dst,
int dstIndex,
int len)
Swaps elements from two GapLists.
|