| Package | Description |
|---|---|
| org.magicwerk.brownies.collections |
Brownies Collections complements 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 and BigList for primitive data types.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BigList<E>
BigList is a list optimized for storing large number of elements.
|
class |
GapList<E>
GapList combines the strengths of both ArrayList and LinkedList.
|
class |
Key1List<E,K>
Key1List 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 list instance.
|
IList<E> |
GapList.doCreate(int capacity) |
IList<E> |
IList.extract(int index,
int len)
Removes specified range of elements from list and return them.
|
IList<E> |
IList.extractWhere(IPredicate<E> predicate)
Removes and returns all elements in the list which match the predicate.
|
IList<E> |
KeyListImpl.getAll(E elem) |
IList<E> |
KeyList.getAll(E elem) |
IList<E> |
Key2List.getAll(E elem) |
IList<E> |
Key1List.getAll(E elem) |
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.
|
IList<E> |
IList.getWhere(IPredicate<E> predicate)
Returns all elements in the list which match the predicate.
|
<R> IList<R> |
IList.mappedList(IFunction<E,R> mapper)
Create a new list by applying the specified mapper to all elements.
|
IList<E> |
KeyListImpl.removeAll(E elem) |
IList<E> |
KeyList.removeAll(E elem) |
IList<E> |
Key2List.removeAll(E elem) |
IList<E> |
Key1List.removeAll(E elem) |
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.
|
void |
IList.initAll(IList<? extends E> list)
Initializes the list so it will afterwards only contain the elements of the collection.
|
void |
IList.putAll(int index,
IList<? extends E> list)
Set or add the specified elements.
|
boolean |
IList.removeAll(IList<?> coll) |
void |
IList.replaceAll(int index,
int len,
IList<? extends E> list)
Replaces the specified range with new elements.
|
boolean |
IList.retainAll(IList<?> coll) |
void |
IList.setAll(int index,
IList<? extends E> list)
Sets the specified elements.
|
static <E> void |
IList.transferCopy(IList<E> src,
int srcIndex,
int srcLen,
IList<? super E> dst,
int dstIndex,
int dstLen)
Copies elements from one list to another.
|
static <E> void |
IList.transferCopy(IList<E> src,
int srcIndex,
int srcLen,
IList<? super E> dst,
int dstIndex,
int dstLen)
Copies elements from one list to another.
|
static <E> void |
IList.transferMove(IList<E> src,
int srcIndex,
int srcLen,
IList<? super E> dst,
int dstIndex,
int dstLen)
Moves elements from one list to another by setting it to null in the source list.
|
static <E> void |
IList.transferMove(IList<E> src,
int srcIndex,
int srcLen,
IList<? super E> dst,
int dstIndex,
int dstLen)
Moves elements from one list to another by setting it to null in the source list.
|
static <E> void |
IList.transferRemove(IList<E> src,
int srcIndex,
int srcLen,
IList<? super E> dst,
int dstIndex,
int dstLen)
Moves elements from one list to another by removing it from the source list.
|
static <E> void |
IList.transferRemove(IList<E> src,
int srcIndex,
int srcLen,
IList<? super E> dst,
int dstIndex,
int dstLen)
Moves elements from one list to another by removing it from the source list.
|
static <E> void |
IList.transferSwap(IList<E> src,
int srcIndex,
IList<E> dst,
int dstIndex,
int len)
Swaps elements from two lists.
|
static <E> void |
IList.transferSwap(IList<E> src,
int srcIndex,
IList<E> dst,
int dstIndex,
int len)
Swaps elements from two lists.
|
| Modifier and Type | Method and Description |
|---|---|
static IList<?> |
GapLists.createWrapperList(java.lang.Class<?> type)
Create a GapList wrapping a primitive GapList, e.g. an IntObjGapList wrapping an IntGapList.
|
static IList<?> |
BigLists.createWrapperList(java.lang.Class<?> type)
Create a BigList wrapping a primitive BigList, e.g. an IntObjBigList wrapping an IntBigList.
|
static IList<?> |
GapLists.createWrapperList(java.lang.Class<?> type,
int capacity)
Create a GapList wrapping a primitive GapList, e.g. an IntObjGapList wrapping an IntGapList.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BooleanObjBigList
BooleanObjBigList implements the List interface and uses an instance
of BooleanBigList for storage.
|
class |
BooleanObjGapList
BooleanObjGapList implements the List interface and uses an instance
of BooleanGapList for storage.
|
class |
ByteObjBigList
ByteObjBigList implements the List interface and uses an instance
of ByteBigList for storage.
|
class |
ByteObjGapList
ByteObjGapList implements the List interface and uses an instance
of ByteGapList for storage.
|
class |
CharObjBigList
CharObjBigList implements the List interface and uses an instance
of CharBigList for storage.
|
class |
CharObjGapList
CharObjGapList implements the List interface and uses an instance
of CharGapList for storage.
|
class |
DoubleObjBigList
DoubleObjBigList implements the List interface and uses an instance
of DoubleBigList for storage.
|
class |
DoubleObjGapList
DoubleObjGapList implements the List interface and uses an instance
of DoubleGapList for storage.
|
class |
FloatObjBigList
FloatObjBigList implements the List interface and uses an instance
of FloatBigList for storage.
|
class |
FloatObjGapList
FloatObjGapList implements the List interface and uses an instance
of FloatGapList for storage.
|
class |
IntObjBigList
IntObjBigList implements the List interface and uses an instance
of IntBigList for storage.
|
class |
IntObjGapList
IntObjGapList implements the List interface and uses an instance
of IntGapList for storage.
|
class |
LongObjBigList
LongObjBigList implements the List interface and uses an instance
of LongBigList for storage.
|
class |
LongObjGapList
LongObjGapList implements the List interface and uses an instance
of LongGapList for storage.
|
class |
ShortObjBigList
ShortObjBigList implements the List interface and uses an instance
of ShortBigList 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.Short> |
ShortObjBigList.doCreate(int capacity) |
IList<java.lang.Long> |
LongObjGapList.doCreate(int capacity) |
IList<java.lang.Long> |
LongObjBigList.doCreate(int capacity) |
IList<java.lang.Integer> |
IntObjGapList.doCreate(int capacity) |
IList<java.lang.Integer> |
IntObjBigList.doCreate(int capacity) |
IList<java.lang.Float> |
FloatObjGapList.doCreate(int capacity) |
IList<java.lang.Float> |
FloatObjBigList.doCreate(int capacity) |
IList<java.lang.Double> |
DoubleObjGapList.doCreate(int capacity) |
IList<java.lang.Double> |
DoubleObjBigList.doCreate(int capacity) |
IList<java.lang.Character> |
CharObjGapList.doCreate(int capacity) |
IList<java.lang.Character> |
CharObjBigList.doCreate(int capacity) |
IList<java.lang.Byte> |
ByteObjGapList.doCreate(int capacity) |
IList<java.lang.Byte> |
ByteObjBigList.doCreate(int capacity) |
IList<java.lang.Boolean> |
BooleanObjGapList.doCreate(int capacity) |
IList<java.lang.Boolean> |
BooleanObjBigList.doCreate(int capacity) |
<R> IList<R> |
IBooleanList.mappedList(IFunction<java.lang.Boolean,R> mapper)
Create a new list by applying the specified mapper to all elements.
|
<R> IList<R> |
IByteList.mappedList(IFunction<java.lang.Byte,R> mapper)
Create a new list by applying the specified mapper to all elements.
|
<R> IList<R> |
ICharList.mappedList(IFunction<java.lang.Character,R> mapper)
Create a new list by applying the specified mapper to all elements.
|
<R> IList<R> |
IDoubleList.mappedList(IFunction<java.lang.Double,R> mapper)
Create a new list by applying the specified mapper to all elements.
|
<R> IList<R> |
IFloatList.mappedList(IFunction<java.lang.Float,R> mapper)
Create a new list by applying the specified mapper to all elements.
|
<R> IList<R> |
IIntList.mappedList(IFunction<java.lang.Integer,R> mapper)
Create a new list by applying the specified mapper to all elements.
|
<R> IList<R> |
ILongList.mappedList(IFunction<java.lang.Long,R> mapper)
Create a new list by applying the specified mapper to all elements.
|
<R> IList<R> |
IShortList.mappedList(IFunction<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 |
BooleanObjBigList.addAll(IList<? extends java.lang.Boolean> list2) |
boolean |
ByteObjGapList.addAll(IList<? extends java.lang.Byte> list2) |
boolean |
ByteObjBigList.addAll(IList<? extends java.lang.Byte> list2) |
boolean |
CharObjGapList.addAll(IList<? extends java.lang.Character> list2) |
boolean |
CharObjBigList.addAll(IList<? extends java.lang.Character> list2) |
boolean |
DoubleObjGapList.addAll(IList<? extends java.lang.Double> list2) |
boolean |
DoubleObjBigList.addAll(IList<? extends java.lang.Double> list2) |
boolean |
FloatObjGapList.addAll(IList<? extends java.lang.Float> list2) |
boolean |
FloatObjBigList.addAll(IList<? extends java.lang.Float> list2) |
boolean |
IntObjGapList.addAll(IList<? extends java.lang.Integer> list2) |
boolean |
IntObjBigList.addAll(IList<? extends java.lang.Integer> list2) |
boolean |
LongObjGapList.addAll(IList<? extends java.lang.Long> list2) |
boolean |
LongObjBigList.addAll(IList<? extends java.lang.Long> list2) |
boolean |
ShortObjGapList.addAll(IList<? extends java.lang.Short> list2) |
boolean |
ShortObjBigList.addAll(IList<? extends java.lang.Short> list2) |
boolean |
BooleanObjGapList.addAll(int index,
IList<? extends java.lang.Boolean> list2) |
boolean |
BooleanObjBigList.addAll(int index,
IList<? extends java.lang.Boolean> list2) |
boolean |
ByteObjGapList.addAll(int index,
IList<? extends java.lang.Byte> list2) |
boolean |
ByteObjBigList.addAll(int index,
IList<? extends java.lang.Byte> list2) |
boolean |
CharObjGapList.addAll(int index,
IList<? extends java.lang.Character> list2) |
boolean |
CharObjBigList.addAll(int index,
IList<? extends java.lang.Character> list2) |
boolean |
DoubleObjGapList.addAll(int index,
IList<? extends java.lang.Double> list2) |
boolean |
DoubleObjBigList.addAll(int index,
IList<? extends java.lang.Double> list2) |
boolean |
FloatObjGapList.addAll(int index,
IList<? extends java.lang.Float> list2) |
boolean |
FloatObjBigList.addAll(int index,
IList<? extends java.lang.Float> list2) |
boolean |
IntObjGapList.addAll(int index,
IList<? extends java.lang.Integer> list2) |
boolean |
IntObjBigList.addAll(int index,
IList<? extends java.lang.Integer> list2) |
boolean |
LongObjGapList.addAll(int index,
IList<? extends java.lang.Long> list2) |
boolean |
LongObjBigList.addAll(int index,
IList<? extends java.lang.Long> list2) |
boolean |
ShortObjGapList.addAll(int index,
IList<? extends java.lang.Short> list2) |
boolean |
ShortObjBigList.addAll(int index,
IList<? extends java.lang.Short> list2) |
boolean |
ShortObjGapList.removeAll(IList<?> coll) |
boolean |
ShortObjBigList.removeAll(IList<?> coll) |
boolean |
LongObjGapList.removeAll(IList<?> coll) |
boolean |
LongObjBigList.removeAll(IList<?> coll) |
boolean |
IntObjGapList.removeAll(IList<?> coll) |
boolean |
IntObjBigList.removeAll(IList<?> coll) |
boolean |
FloatObjGapList.removeAll(IList<?> coll) |
boolean |
FloatObjBigList.removeAll(IList<?> coll) |
boolean |
DoubleObjGapList.removeAll(IList<?> coll) |
boolean |
DoubleObjBigList.removeAll(IList<?> coll) |
boolean |
CharObjGapList.removeAll(IList<?> coll) |
boolean |
CharObjBigList.removeAll(IList<?> coll) |
boolean |
ByteObjGapList.removeAll(IList<?> coll) |
boolean |
ByteObjBigList.removeAll(IList<?> coll) |
boolean |
BooleanObjGapList.removeAll(IList<?> coll) |
boolean |
BooleanObjBigList.removeAll(IList<?> coll) |
boolean |
ShortObjGapList.retainAll(IList<?> coll) |
boolean |
ShortObjBigList.retainAll(IList<?> coll) |
boolean |
LongObjGapList.retainAll(IList<?> coll) |
boolean |
LongObjBigList.retainAll(IList<?> coll) |
boolean |
IntObjGapList.retainAll(IList<?> coll) |
boolean |
IntObjBigList.retainAll(IList<?> coll) |
boolean |
FloatObjGapList.retainAll(IList<?> coll) |
boolean |
FloatObjBigList.retainAll(IList<?> coll) |
boolean |
DoubleObjGapList.retainAll(IList<?> coll) |
boolean |
DoubleObjBigList.retainAll(IList<?> coll) |
boolean |
CharObjGapList.retainAll(IList<?> coll) |
boolean |
CharObjBigList.retainAll(IList<?> coll) |
boolean |
ByteObjGapList.retainAll(IList<?> coll) |
boolean |
ByteObjBigList.retainAll(IList<?> coll) |
boolean |
BooleanObjGapList.retainAll(IList<?> coll) |
boolean |
BooleanObjBigList.retainAll(IList<?> coll) |
void |
BooleanObjGapList.setAll(int index,
IList<? extends java.lang.Boolean> list2) |
void |
BooleanObjBigList.setAll(int index,
IList<? extends java.lang.Boolean> list2) |
void |
ByteObjGapList.setAll(int index,
IList<? extends java.lang.Byte> list2) |
void |
ByteObjBigList.setAll(int index,
IList<? extends java.lang.Byte> list2) |
void |
CharObjGapList.setAll(int index,
IList<? extends java.lang.Character> list2) |
void |
CharObjBigList.setAll(int index,
IList<? extends java.lang.Character> list2) |
void |
DoubleObjGapList.setAll(int index,
IList<? extends java.lang.Double> list2) |
void |
DoubleObjBigList.setAll(int index,
IList<? extends java.lang.Double> list2) |
void |
FloatObjGapList.setAll(int index,
IList<? extends java.lang.Float> list2) |
void |
FloatObjBigList.setAll(int index,
IList<? extends java.lang.Float> list2) |
void |
IntObjGapList.setAll(int index,
IList<? extends java.lang.Integer> list2) |
void |
IntObjBigList.setAll(int index,
IList<? extends java.lang.Integer> list2) |
void |
LongObjGapList.setAll(int index,
IList<? extends java.lang.Long> list2) |
void |
LongObjBigList.setAll(int index,
IList<? extends java.lang.Long> list2) |
void |
ShortObjGapList.setAll(int index,
IList<? extends java.lang.Short> list2) |
void |
ShortObjBigList.setAll(int index,
IList<? extends java.lang.Short> list2) |