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