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