| Package | Description |
|---|---|
| org.magicwerk.brownies.collections.primitive |
This packages contains implementations of GapList for primitive data types.
|
| Modifier and Type | Method and Description |
|---|---|
ShortGapList |
ShortGapList.copy()
Returns a shallow copy of this ShortGapList instance
(the new list will contain the same elements as the source list, i.e. the elements themselves are not copied).
|
static ShortGapList |
ShortGapList.create()
Create new list.
|
static ShortGapList |
ShortGapList.create(java.util.Collection<java.lang.Short> coll)
Create new list with specified elements.
|
static ShortGapList |
ShortGapList.create(int capacity)
Create new list with specified capacity.
|
static ShortGapList |
ShortGapList.create(short... elems)
Create new list with specified elements.
|
static ShortGapList |
ShortGapList.EMPTY() |
ShortGapList |
ShortGapList.getAll(int index,
int len)
Returns specified range of elements from list.
|
ShortGapList |
ShortGapList.unmodifiableList()
Returns an unmodifiable view of this list.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ShortGapList.addAll(int index,
ShortGapList list)
Inserts all of the elements in the specified list into this
list, starting at the specified position.
|
boolean |
ShortGapList.addAll(ShortGapList list)
Adds all of the elements in the specified list into this list.
|
static void |
ShortGapList.copy(ShortGapList src,
int srcIndex,
ShortGapList dst,
int dstIndex,
int len)
Copies elements from one ShortGapList to another.
|
static void |
ShortGapList.move(ShortGapList src,
int srcIndex,
ShortGapList dst,
int dstIndex,
int len)
Moves elements from one ShortGapList to another.
|
boolean |
ShortGapList.removeAll(ShortGapList coll) |
boolean |
ShortGapList.retainAll(ShortGapList coll) |
void |
ShortGapList.setAll(int index,
ShortGapList list)
Replaces the specified elements.
|
static void |
ShortGapList.swap(ShortGapList src,
int srcIndex,
ShortGapList dst,
int dstIndex,
int len)
Swaps elements from two GapLists.
|