| Package | Description |
|---|---|
| org.magicwerk.brownies.collections |
This packages contains collections extending the Java Collections Framework.
|
| Modifier and Type | Class and Description |
|---|---|
class |
org.magicwerk.brownies.collections.KeyList<E,K> |
class |
MapList<E,K>
Think about MapList as of a Map where you can also access the
elements by index.
|
class |
MaxList<E>
A MaxList is a list with a fixed size.
|
| Modifier and Type | Method and Description |
|---|---|
GapList<E> |
GapList.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).
|
static <E> GapList<E> |
GapList.create()
Create new list.
|
static <E> GapList<E> |
GapList.create(E... elems)
Create new list and add multiple elements to list.
|
static <EE> GapList<EE> |
GapList.EMPTY() |
GapList<E> |
GapList.get(int index,
int len)
Returns specified range of elements from list.
|
GapList<E> |
GapList.unmodifiableList()
Returns an unmodifiable view of this list.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
GapList.addAll(GapList<? extends E> list)
Adds all of the elements in the specified list into this list.
|
boolean |
GapList.addAll(int index,
GapList<? extends E> list)
Inserts all of the elements in the specified list into this
list, starting at the specified position.
|
static <E> void |
GapList.copy(GapList<? extends E> src,
int srcIndex,
GapList<E> dst,
int dstIndex,
int len)
Copies elements from one GapList to another.
|
static <E> void |
GapList.copy(GapList<? extends E> src,
int srcIndex,
GapList<E> dst,
int dstIndex,
int len)
Copies elements from one GapList to another.
|
static <E> void |
GapList.move(GapList<? extends E> src,
int srcIndex,
GapList<E> dst,
int dstIndex,
int len)
Moves elements from one GapList to another.
|
static <E> void |
GapList.move(GapList<? extends E> src,
int srcIndex,
GapList<E> dst,
int dstIndex,
int len)
Moves elements from one GapList to another.
|
boolean |
GapList.removeAll(GapList<?> coll) |
boolean |
GapList.retainAll(GapList<?> coll) |
void |
GapList.setAll(int index,
GapList<E> list)
Replaces the specified elements.
|
static <E> void |
GapList.swap(GapList<E> src,
int srcIndex,
GapList<E> dst,
int dstIndex,
int len)
Swaps elements from two GapLists.
|
static <E> void |
GapList.swap(GapList<E> src,
int srcIndex,
GapList<E> dst,
int dstIndex,
int len)
Swaps elements from two GapLists.
|