| 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 |
FloatBinarySearch.binarySearch(IFloatList list,
float key,
int lower,
int upper)
Searches the specified list for the specified object using the binary search algorithm.
|
static <E> void |
FloatMergeSort.sort(IFloatList list) |
static <E> void |
FloatMergeSort.sort(IFloatList list,
int from,
int to) |
| Modifier and Type | Class and Description |
|---|---|
class |
FloatBigList
FloatBigList is a list optimized for storing large number of elements.
|
class |
FloatGapList
FloatGapList combines the strengths of both ArrayList and LinkedList.
|
| Modifier and Type | Method and Description |
|---|---|
IFloatList |
IFloatList.copy()
Returns a shallow copy of this list instance.
|
IFloatList |
FloatGapList.doCreate(int capacity) |
IFloatList |
IFloatList.extract(int index,
int len)
Removes specified range of elements from list and return them.
|
IFloatList |
IFloatList.extractWhere(IPredicate predicate)
Removes and returns all elements in the list which match the predicate.
|
IFloatList |
IFloatList.getAll(float elem)
Returns all elements in the list equal to the specified element.
|
IFloatList |
IFloatList.getAll(int index,
int len)
Returns specified range of elements from list.
|
IFloatList |
IFloatList.getWhere(IPredicate predicate)
Returns all elements in the list which match the predicate.
|
static IFloatList |
FloatBigList.of(float[] values) |
static IFloatList |
FloatBigList.of(java.lang.Float[] values) |
static IFloatList |
FloatBigList.of(java.util.List<java.lang.Float> values) |
IFloatList |
IFloatList.removeAll(float elem)
Removes all equal elements.
|
abstract IFloatList |
IFloatList.unmodifiableList()
Returns an unmodifiable view of this list.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
IFloatList.addAll(IFloatList list)
Adds all of the elements in the specified list into this list.
|
boolean |
IFloatList.addAll(int index,
IFloatList list)
Inserts all of the elements in the specified list into this
list, starting at the specified position.
|
void |
IFloatList.initAll(IFloatList list)
Initializes the list so it will afterwards only contain the elements of the collection.
|
void |
IFloatList.putAll(int index,
IFloatList list)
Set or add the specified elements.
|
boolean |
IFloatList.removeAll(IFloatList coll) |
void |
IFloatList.replaceAll(int index,
int len,
IFloatList list)
Replaces the specified range with new elements.
|
boolean |
IFloatList.retainAll(IFloatList coll) |
void |
IFloatList.setAll(int index,
IFloatList list)
Sets the specified elements.
|
static void |
IFloatList.transferCopy(IFloatList src,
int srcIndex,
int srcLen,
IFloatList dst,
int dstIndex,
int dstLen)
Copies elements from one list to another.
|
static void |
IFloatList.transferMove(IFloatList src,
int srcIndex,
int srcLen,
IFloatList dst,
int dstIndex,
int dstLen)
Moves elements from one list to another by setting it to null in the source list.
|
static void |
IFloatList.transferRemove(IFloatList src,
int srcIndex,
int srcLen,
IFloatList dst,
int dstIndex,
int dstLen)
Moves elements from one list to another by removing it from the source list.
|
static void |
IFloatList.transferSwap(IFloatList src,
int srcIndex,
IFloatList dst,
int dstIndex,
int len)
Swaps elements from two lists.
|