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