| 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 |
GapList<E>
GapList combines the strengths of both ArrayList and LinkedList.
|
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 |
|---|---|
IList<E> |
IList.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).
|
IList<E> |
GapList.doCreate(int capacity) |
IList<E> |
IList.getAll(E elem)
Returns all elements in the list equal to the specified element.
|
IList<E> |
IList.getAll(int index,
int len)
Returns specified range of elements from list.
|
<R> IList<R> |
IList.mappedList(Mapper<E,R> mapper)
Create a new list by applying the specified mapper to all elements.
|
IList<E> |
IList.removeAll(E elem)
Removes all equal elements.
|
abstract IList<E> |
IList.unmodifiableList()
Returns an unmodifiable view of this list.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
IList.addAll(IList<? extends E> list)
Adds all of the elements in the specified list into this list.
|
boolean |
IList.addAll(int index,
IList<? extends E> list)
Inserts all of the elements in the specified list into this
list, starting at the specified position.
|
static <E> void |
IList.copy(IList<? extends E> src,
int srcIndex,
IList<E> dst,
int dstIndex,
int len)
Copies elements from one GapList to another.
|
static <E> void |
IList.copy(IList<? extends E> src,
int srcIndex,
IList<E> dst,
int dstIndex,
int len)
Copies elements from one GapList to another.
|
static <E> void |
IList.move(IList<E> src,
int srcIndex,
IList<? super E> dst,
int dstIndex,
int len)
Moves elements from one GapList to another.
|
static <E> void |
IList.move(IList<E> src,
int srcIndex,
IList<? super E> dst,
int dstIndex,
int len)
Moves elements from one GapList to another.
|
boolean |
IList.removeAll(IList<?> coll) |
boolean |
IList.retainAll(IList<?> coll) |
void |
IList.setAll(int index,
IList<? extends E> list)
Replaces the specified elements.
|
static <E> void |
IList.swap(IList<E> src,
int srcIndex,
IList<E> dst,
int dstIndex,
int len)
Swaps elements from two GapLists.
|
static <E> void |
IList.swap(IList<E> src,
int srcIndex,
IList<E> dst,
int dstIndex,
int len)
Swaps elements from two GapLists.
|
| Modifier and Type | Method and Description |
|---|---|
static IList<?> |
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 |
|---|---|
IList<java.lang.Short> |
ShortObjGapList.doCreate(int capacity) |
IList<java.lang.Long> |
LongObjGapList.doCreate(int capacity) |
IList<java.lang.Integer> |
IntObjGapList.doCreate(int capacity) |
IList<java.lang.Float> |
FloatObjGapList.doCreate(int capacity) |
IList<java.lang.Double> |
DoubleObjGapList.doCreate(int capacity) |
IList<java.lang.Character> |
CharObjGapList.doCreate(int capacity) |
IList<java.lang.Byte> |
ByteObjGapList.doCreate(int capacity) |
IList<java.lang.Boolean> |
BooleanObjGapList.doCreate(int capacity) |
<R> IList<R> |
IBooleanList.mappedList(Mapper<java.lang.Boolean,R> mapper)
Create a new list by applying the specified mapper to all elements.
|
<R> IList<R> |
IByteList.mappedList(Mapper<java.lang.Byte,R> mapper)
Create a new list by applying the specified mapper to all elements.
|
<R> IList<R> |
ICharList.mappedList(Mapper<java.lang.Character,R> mapper)
Create a new list by applying the specified mapper to all elements.
|
<R> IList<R> |
IDoubleList.mappedList(Mapper<java.lang.Double,R> mapper)
Create a new list by applying the specified mapper to all elements.
|
<R> IList<R> |
IFloatList.mappedList(Mapper<java.lang.Float,R> mapper)
Create a new list by applying the specified mapper to all elements.
|
<R> IList<R> |
IIntList.mappedList(Mapper<java.lang.Integer,R> mapper)
Create a new list by applying the specified mapper to all elements.
|
<R> IList<R> |
ILongList.mappedList(Mapper<java.lang.Long,R> mapper)
Create a new list by applying the specified mapper to all elements.
|
<R> IList<R> |
IShortList.mappedList(Mapper<java.lang.Short,R> mapper)
Create a new list by applying the specified mapper to all elements.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
BooleanObjGapList.addAll(IList<? extends java.lang.Boolean> list2) |
boolean |
ByteObjGapList.addAll(IList<? extends java.lang.Byte> list2) |
boolean |
CharObjGapList.addAll(IList<? extends java.lang.Character> list2) |
boolean |
DoubleObjGapList.addAll(IList<? extends java.lang.Double> list2) |
boolean |
FloatObjGapList.addAll(IList<? extends java.lang.Float> list2) |
boolean |
IntObjGapList.addAll(IList<? extends java.lang.Integer> list2) |
boolean |
LongObjGapList.addAll(IList<? extends java.lang.Long> list2) |
boolean |
ShortObjGapList.addAll(IList<? extends java.lang.Short> list2) |
boolean |
BooleanObjGapList.addAll(int index,
IList<? extends java.lang.Boolean> list2) |
boolean |
ByteObjGapList.addAll(int index,
IList<? extends java.lang.Byte> list2) |
boolean |
CharObjGapList.addAll(int index,
IList<? extends java.lang.Character> list2) |
boolean |
DoubleObjGapList.addAll(int index,
IList<? extends java.lang.Double> list2) |
boolean |
FloatObjGapList.addAll(int index,
IList<? extends java.lang.Float> list2) |
boolean |
IntObjGapList.addAll(int index,
IList<? extends java.lang.Integer> list2) |
boolean |
LongObjGapList.addAll(int index,
IList<? extends java.lang.Long> list2) |
boolean |
ShortObjGapList.addAll(int index,
IList<? extends java.lang.Short> list2) |
boolean |
ShortObjGapList.removeAll(IList<?> coll) |
boolean |
LongObjGapList.removeAll(IList<?> coll) |
boolean |
IntObjGapList.removeAll(IList<?> coll) |
boolean |
FloatObjGapList.removeAll(IList<?> coll) |
boolean |
DoubleObjGapList.removeAll(IList<?> coll) |
boolean |
CharObjGapList.removeAll(IList<?> coll) |
boolean |
ByteObjGapList.removeAll(IList<?> coll) |
boolean |
BooleanObjGapList.removeAll(IList<?> coll) |
boolean |
ShortObjGapList.retainAll(IList<?> coll) |
boolean |
LongObjGapList.retainAll(IList<?> coll) |
boolean |
IntObjGapList.retainAll(IList<?> coll) |
boolean |
FloatObjGapList.retainAll(IList<?> coll) |
boolean |
DoubleObjGapList.retainAll(IList<?> coll) |
boolean |
CharObjGapList.retainAll(IList<?> coll) |
boolean |
ByteObjGapList.retainAll(IList<?> coll) |
boolean |
BooleanObjGapList.retainAll(IList<?> coll) |
void |
BooleanObjGapList.setAll(int index,
IList<? extends java.lang.Boolean> list2) |
void |
ByteObjGapList.setAll(int index,
IList<? extends java.lang.Byte> list2) |
void |
CharObjGapList.setAll(int index,
IList<? extends java.lang.Character> list2) |
void |
DoubleObjGapList.setAll(int index,
IList<? extends java.lang.Double> list2) |
void |
FloatObjGapList.setAll(int index,
IList<? extends java.lang.Float> list2) |
void |
IntObjGapList.setAll(int index,
IList<? extends java.lang.Integer> list2) |
void |
LongObjGapList.setAll(int index,
IList<? extends java.lang.Long> list2) |
void |
ShortObjGapList.setAll(int index,
IList<? extends java.lang.Short> list2) |