public class IntBigList extends IIntList
Note that this implementation is not synchronized. Due to data caching used for exploiting locality of reference, performance can decrease if IntBigList is accessed by several threads at different positions.
Note that the iterators provided are not fail-fast.
| Constructor and Description |
|---|
IntBigList()
Default constructor.
|
IntBigList(java.util.Collection<java.lang.Integer> coll)
Create new list with specified elements.
|
IntBigList(int blockSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
binarySearch(int index,
int len,
int key)
Searches the specified range for an object using the binary
search algorithm.
|
int |
blockSize()
Returns block size used for this IntBigList.
|
int |
capacity()
As IntBigList grows and shrinks automatically, the term capacity does not really make sense.
|
java.lang.Object |
clone()
Returns a shallow copy of this IntBigList instance
The copy is realized by a copy-on-write approach so also really large lists can efficiently be copied.
|
IntBigList |
copy()
Returns a copy of this IntBigList instance.
|
static IntBigList |
create()
Create new list.
|
static IntBigList |
create(java.util.Collection<java.lang.Integer> coll)
Create new list with specified elements.
|
static IntBigList |
create(int... elems)
Create new list with specified elements.
|
static IntBigList |
EMPTY() |
int |
getDefaultElem() |
static IIntList |
of(int[] values) |
static IIntList |
of(java.lang.Integer[] values) |
static IIntList |
of(java.util.List<java.lang.Integer> values) |
int |
size() |
void |
sort(int index,
int len)
Sort specified elements in the list using the specified comparator.
|
void |
trimToSize()
Pack as many elements in the blocks as allowed.
|
IntBigList |
unmodifiableList()
Returns an unmodifiable view of this list.
|
add, add, addAll, addAll, addAll, addAll, addArray, addArray, addFirst, addIfAbsent, addLast, addMult, addMult, binarySearch, clear, contains, containsAll, containsAny, copy, drag, element, ensureCapacity, equals, extract, extractWhere, fill, filter, get, getAll, getAll, getArray, getCount, getDistinct, getFirst, getLast, getWhere, hashCode, indexOf, indexOf, initAll, initAll, initArray, initMult, isEmpty, lastIndexOf, lastIndexOf, mappedList, move, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, put, putAll, putAll, putArray, putMult, remove, remove, remove, removeAll, removeAll, removeAll, removeElem, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, removeWhere, replaceAll, replaceAll, replaceArray, replaceMult, resize, retainAll, retainAll, retainWhere, reverse, reverse, rotate, rotate, set, setAll, setAll, setArray, setMult, sort, swap, toArray, toArray, toArray, toString, transferCopy, transferMove, transferRemove, transferSwappublic IntBigList()
public IntBigList(int blockSize)
blockSize - block sizepublic IntBigList(java.util.Collection<java.lang.Integer> coll)
coll - collection with elementpublic static IIntList of(int[] values)
public static IIntList of(java.lang.Integer[] values)
public static IIntList of(java.util.List<java.lang.Integer> values)
public static IntBigList EMPTY()
public static IntBigList create()
type - of elements stored in the listpublic static IntBigList create(java.util.Collection<java.lang.Integer> coll)
coll - collection with elementtype - of elements stored in the listpublic static IntBigList create(int... elems)
elems - array with elementstype - of elements stored in the listpublic int blockSize()
public IntBigList copy()
copy in class IIntListIIntList.clone()public java.lang.Object clone()
public int getDefaultElem()
public int capacity()
public IntBigList unmodifiableList()
IIntListunmodifiableList in class IIntListpublic void trimToSize()
trimToSize in class IIntListpublic void sort(int index,
int len)
IIntListpublic int binarySearch(int index,
int len,
int key)
IIntListbinarySearch in class IIntListindex - index of first element to searchlen - number of elements to searchkey - the value to be searched forArrays.binarySearch(long[], long)