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