| Package | Description |
|---|---|
| org.magicwerk.brownies.collections.helper.primitive |
This packages contains helper classes for the package org.magicwerk.brownies.collections.primitive:
- binary search for primitive arrays - merge sort for primitive arrays |
| org.magicwerk.brownies.collections.primitive |
This packages contains implementations of GapList and BigList for primitive data types.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
DoubleBinarySearch.binarySearch(IDoubleList list,
double key,
int lower,
int upper)
Searches the specified list for the specified object using the binary search algorithm.
|
static <E> void |
DoubleMergeSort.sort(IDoubleList list) |
static <E> void |
DoubleMergeSort.sort(IDoubleList list,
int from,
int to) |
| Modifier and Type | Class and Description |
|---|---|
class |
DoubleBigList
DoubleBigList is a list optimized for storing large number of elements.
|
class |
DoubleGapList
DoubleGapList combines the strengths of both ArrayList and LinkedList.
|
| Modifier and Type | Method and Description |
|---|---|
IDoubleList |
IDoubleList.copy()
Returns a shallow copy of this list instance.
|
IDoubleList |
DoubleGapList.doCreate(int capacity) |
IDoubleList |
IDoubleList.extract(int index,
int len)
Removes specified range of elements from list and return them.
|
IDoubleList |
IDoubleList.extractWhere(IPredicate predicate)
Removes and returns all elements in the list which match the predicate.
|
IDoubleList |
IDoubleList.getAll(double elem)
Returns all elements in the list equal to the specified element.
|
IDoubleList |
IDoubleList.getAll(int index,
int len)
Returns specified range of elements from list.
|
IDoubleList |
IDoubleList.getWhere(IPredicate predicate)
Returns all elements in the list which match the predicate.
|
static IDoubleList |
DoubleBigList.of(double[] values) |
static IDoubleList |
DoubleBigList.of(java.lang.Double[] values) |
static IDoubleList |
DoubleBigList.of(java.util.List<java.lang.Double> values) |
IDoubleList |
IDoubleList.removeAll(double elem)
Removes all equal elements.
|
abstract IDoubleList |
IDoubleList.unmodifiableList()
Returns an unmodifiable view of this list.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
IDoubleList.addAll(IDoubleList list)
Adds all of the elements in the specified list into this list.
|
boolean |
IDoubleList.addAll(int index,
IDoubleList list)
Inserts all of the elements in the specified list into this
list, starting at the specified position.
|
void |
IDoubleList.initAll(IDoubleList list)
Initializes the list so it will afterwards only contain the elements of the collection.
|
void |
IDoubleList.putAll(int index,
IDoubleList list)
Set or add the specified elements.
|
boolean |
IDoubleList.removeAll(IDoubleList coll) |
void |
IDoubleList.replaceAll(int index,
int len,
IDoubleList list)
Replaces the specified range with new elements.
|
boolean |
IDoubleList.retainAll(IDoubleList coll) |
void |
IDoubleList.setAll(int index,
IDoubleList list)
Sets the specified elements.
|
static void |
IDoubleList.transferCopy(IDoubleList src,
int srcIndex,
int srcLen,
IDoubleList dst,
int dstIndex,
int dstLen)
Copies elements from one list to another.
|
static void |
IDoubleList.transferMove(IDoubleList src,
int srcIndex,
int srcLen,
IDoubleList dst,
int dstIndex,
int dstLen)
Moves elements from one list to another by setting it to null in the source list.
|
static void |
IDoubleList.transferRemove(IDoubleList src,
int srcIndex,
int srcLen,
IDoubleList dst,
int dstIndex,
int dstLen)
Moves elements from one list to another by removing it from the source list.
|
static void |
IDoubleList.transferSwap(IDoubleList src,
int srcIndex,
IDoubleList dst,
int dstIndex,
int len)
Swaps elements from two lists.
|