| Package | Description |
|---|---|
| org.magicwerk.brownies.collections |
This packages contains collections extending the Java Collections Framework.
|
| org.magicwerk.brownies.collections.helper |
This packages contains helper classes for the package org.magicwerk.brownies.collections.
|
| org.magicwerk.brownies.collections.primitive |
This packages contains implementations of GapList for primitive data types.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Key1List<E,K>
Key2List implements a key list with 1 key.
|
class |
Key2List<E,K1,K2>
Key2List implements a key list with 2 keys.
|
class |
KeyList<E>
KeyList implements a list.
|
class |
KeyListImpl<E>
A KeyList add key handling features to GapList.
|
| 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> |
KeyListImpl.create()
Do not use.
|
static <E> GapList<E> |
GapList.create()
Create new list.
|
static <E> GapList<E> |
KeyListImpl.create(java.util.Collection<? extends E> coll)
Do not use.
|
static <E> GapList<E> |
GapList.create(java.util.Collection<? extends E> coll)
Create new list with specified elements.
|
static <E> GapList<E> |
KeyListImpl.create(E... elems)
Do not use.
|
static <E> GapList<E> |
GapList.create(E... elems)
Create new list with specified elements.
|
static <E> GapList<E> |
KeyListImpl.create(int capacity)
Do not use.
|
static <E> GapList<E> |
GapList.create(int capacity)
Create new list with specified capacity.
|
static <EE> GapList<EE> |
GapList.EMPTY() |
GapList<E> |
KeyList.getAll(E elem) |
GapList<E> |
KeyCollection.getAll(E elem) |
GapList<E> |
Key2List.getAll(E elem) |
GapList<E> |
Key2Collection.getAll(E elem) |
GapList<E> |
Key1List.getAll(E elem) |
GapList<E> |
Key1Collection.getAll(E elem) |
GapList<E> |
GapList.getAll(int index,
int len)
Returns specified range of elements from list.
|
GapList<E> |
KeyListImpl.getAllByKey(int keyIndex,
java.lang.Object key)
Returns a list with all elements with the specified key.
|
GapList<E> |
Key1List.getAllByKey1(K key)
Returns all elements with specified key.
|
GapList<E> |
Key1Collection.getAllByKey1(K key)
Returns all elements with specified key.
|
GapList<E> |
Key2List.getAllByKey1(K1 key)
Returns all elements with specified key.
|
GapList<E> |
Key2Collection.getAllByKey1(K1 key)
Returns all elements with specified key.
|
GapList<E> |
Key2List.getAllByKey2(K2 key)
Returns all elements with specified key.
|
GapList<E> |
Key2Collection.getAllByKey2(K2 key)
Returns all elements with specified key.
|
GapList<E> |
KeyCollectionImpl.getElements() |
GapList<java.lang.Object> |
KeyCollectionImpl.getKeyValues(int keyIndex) |
GapList<E> |
KeyList.removeAll(E elem) |
GapList<E> |
KeyCollection.removeAll(E elem) |
GapList<E> |
Key2List.removeAll(E elem) |
GapList<E> |
Key2Collection.removeAll(E elem) |
GapList<E> |
Key1List.removeAll(E elem) |
GapList<E> |
Key1Collection.removeAll(E elem) |
GapList<E> |
Key1List.removeAllByKey1(K key)
Removes all elements with specified key.
|
GapList<E> |
Key1Collection.removeAllByKey1(K key)
Removes all elements with specified key.
|
GapList<E> |
Key2List.removeAllByKey1(K1 key)
Removes all elements with specified key.
|
GapList<E> |
Key2Collection.removeAllByKey1(K1 key)
Removes all elements with specified key.
|
GapList<E> |
Key2List.removeAllByKey2(K2 key)
Removes all elements with specified key.
|
GapList<E> |
Key2Collection.removeAllByKey2(K2 key)
Removes all elements with specified key.
|
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<? extends 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.
|
| Modifier and Type | Method and Description |
|---|---|
static GapList<?> |
GapLists.createWrapperList(java.lang.Class<?> type)
Create a GapList wrapping a primitive GapList, e.g.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BooleanObjGapList
BooleanObjGapList implements the List interface and uses an instance
of BooleanGapList for storage.
|
class |
ByteObjGapList
ByteObjGapList implements the List interface and uses an instance
of ByteGapList for storage.
|
class |
CharObjGapList
CharObjGapList implements the List interface and uses an instance
of CharGapList for storage.
|
class |
DoubleObjGapList
DoubleObjGapList implements the List interface and uses an instance
of DoubleGapList for storage.
|
class |
FloatObjGapList
FloatObjGapList implements the List interface and uses an instance
of FloatGapList for storage.
|
class |
IntObjGapList
IntObjGapList implements the List interface and uses an instance
of IntGapList for storage.
|
class |
LongObjGapList
LongObjGapList implements the List interface and uses an instance
of LongGapList for storage.
|
class |
ShortObjGapList
ShortObjGapList implements the List interface and uses an instance
of ShortGapList for storage.
|
| Modifier and Type | Method and Description |
|---|---|
GapList<java.lang.Short> |
ShortObjGapList.getAll(int index,
int len) |
GapList<java.lang.Long> |
LongObjGapList.getAll(int index,
int len) |
GapList<java.lang.Integer> |
IntObjGapList.getAll(int index,
int len) |
GapList<java.lang.Float> |
FloatObjGapList.getAll(int index,
int len) |
GapList<java.lang.Double> |
DoubleObjGapList.getAll(int index,
int len) |
GapList<java.lang.Character> |
CharObjGapList.getAll(int index,
int len) |
GapList<java.lang.Byte> |
ByteObjGapList.getAll(int index,
int len) |
GapList<java.lang.Boolean> |
BooleanObjGapList.getAll(int index,
int len) |
GapList<java.lang.Short> |
ShortObjGapList.unmodifiableList() |
GapList<java.lang.Long> |
LongObjGapList.unmodifiableList() |
GapList<java.lang.Integer> |
IntObjGapList.unmodifiableList() |
GapList<java.lang.Float> |
FloatObjGapList.unmodifiableList() |
GapList<java.lang.Double> |
DoubleObjGapList.unmodifiableList() |
GapList<java.lang.Character> |
CharObjGapList.unmodifiableList() |
GapList<java.lang.Byte> |
ByteObjGapList.unmodifiableList() |
GapList<java.lang.Boolean> |
BooleanObjGapList.unmodifiableList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
BooleanObjGapList.addAll(GapList<? extends java.lang.Boolean> list2) |
boolean |
ByteObjGapList.addAll(GapList<? extends java.lang.Byte> list2) |
boolean |
CharObjGapList.addAll(GapList<? extends java.lang.Character> list2) |
boolean |
DoubleObjGapList.addAll(GapList<? extends java.lang.Double> list2) |
boolean |
FloatObjGapList.addAll(GapList<? extends java.lang.Float> list2) |
boolean |
IntObjGapList.addAll(GapList<? extends java.lang.Integer> list2) |
boolean |
LongObjGapList.addAll(GapList<? extends java.lang.Long> list2) |
boolean |
ShortObjGapList.addAll(GapList<? extends java.lang.Short> list2) |
boolean |
BooleanObjGapList.addAll(int index,
GapList<? extends java.lang.Boolean> list2) |
boolean |
ByteObjGapList.addAll(int index,
GapList<? extends java.lang.Byte> list2) |
boolean |
CharObjGapList.addAll(int index,
GapList<? extends java.lang.Character> list2) |
boolean |
DoubleObjGapList.addAll(int index,
GapList<? extends java.lang.Double> list2) |
boolean |
FloatObjGapList.addAll(int index,
GapList<? extends java.lang.Float> list2) |
boolean |
IntObjGapList.addAll(int index,
GapList<? extends java.lang.Integer> list2) |
boolean |
LongObjGapList.addAll(int index,
GapList<? extends java.lang.Long> list2) |
boolean |
ShortObjGapList.addAll(int index,
GapList<? extends java.lang.Short> list2) |
boolean |
ShortObjGapList.removeAll(GapList<?> coll) |
boolean |
LongObjGapList.removeAll(GapList<?> coll) |
boolean |
IntObjGapList.removeAll(GapList<?> coll) |
boolean |
FloatObjGapList.removeAll(GapList<?> coll) |
boolean |
DoubleObjGapList.removeAll(GapList<?> coll) |
boolean |
CharObjGapList.removeAll(GapList<?> coll) |
boolean |
ByteObjGapList.removeAll(GapList<?> coll) |
boolean |
BooleanObjGapList.removeAll(GapList<?> coll) |
boolean |
ShortObjGapList.retainAll(GapList<?> coll) |
boolean |
LongObjGapList.retainAll(GapList<?> coll) |
boolean |
IntObjGapList.retainAll(GapList<?> coll) |
boolean |
FloatObjGapList.retainAll(GapList<?> coll) |
boolean |
DoubleObjGapList.retainAll(GapList<?> coll) |
boolean |
CharObjGapList.retainAll(GapList<?> coll) |
boolean |
ByteObjGapList.retainAll(GapList<?> coll) |
boolean |
BooleanObjGapList.retainAll(GapList<?> coll) |
void |
BooleanObjGapList.setAll(int index,
GapList<? extends java.lang.Boolean> list2) |
void |
ByteObjGapList.setAll(int index,
GapList<? extends java.lang.Byte> list2) |
void |
CharObjGapList.setAll(int index,
GapList<? extends java.lang.Character> list2) |
void |
DoubleObjGapList.setAll(int index,
GapList<? extends java.lang.Double> list2) |
void |
FloatObjGapList.setAll(int index,
GapList<? extends java.lang.Float> list2) |
void |
IntObjGapList.setAll(int index,
GapList<? extends java.lang.Integer> list2) |
void |
LongObjGapList.setAll(int index,
GapList<? extends java.lang.Long> list2) |
void |
ShortObjGapList.setAll(int index,
GapList<? extends java.lang.Short> list2) |