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