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