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