public abstract class AbstractIntList extends AbstractList implements IntBufferConsumer, Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected int |
size |
| Constructor and Description |
|---|
AbstractIntList() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int element) |
void |
addAllOf(AbstractIntList other) |
void |
addAllOf(IntArrayList other) |
void |
addAllOfFromTo(AbstractIntList other,
int from,
int to) |
void |
beforeInsert(int index,
int element) |
void |
beforeInsertAllOfFromTo(int index,
AbstractIntList other,
int from,
int to) |
protected void |
beforeInsertDummies(int index,
int length) |
int |
binarySearch(int key) |
int |
binarySearchFromTo(int key,
int from,
int to) |
Object |
clone() |
boolean |
contains(int elem) |
void |
delete(int element) |
int[] |
elements() |
AbstractIntList |
elements(int[] elements) |
abstract void |
ensureCapacity(int minCapacity) |
boolean |
equals(Object otherObj) |
void |
fillFromToWith(int from,
int to,
int val) |
boolean |
forEach(IntProcedure procedure) |
int |
get(int index) |
protected abstract int |
getQuick(int index) |
int |
indexOf(int element) |
int |
indexOfFromTo(int element,
int from,
int to) |
int |
lastIndexOf(int element) |
int |
lastIndexOfFromTo(int element,
int from,
int to) |
void |
mergeSortFromTo(int from,
int to) |
void |
mergeSortFromTo(int from,
int to,
IntComparator c) |
AbstractIntList |
partFromTo(int from,
int to) |
void |
quickSortFromTo(int from,
int to) |
void |
quickSortFromTo(int from,
int to,
IntComparator c) |
boolean |
removeAll(AbstractIntList other) |
void |
removeFromTo(int from,
int to) |
void |
replaceFromToWithFrom(int from,
int to,
AbstractIntList other,
int otherFrom) |
void |
replaceFromToWithFromTo(int from,
int to,
AbstractIntList other,
int otherFrom,
int otherTo) |
boolean |
retainAll(AbstractIntList other) |
void |
reverse() |
void |
set(int index,
int element) |
protected abstract void |
setQuick(int index,
int element) |
protected void |
setSizeRaw(int newSize) |
int |
size() |
AbstractIntList |
times(int times) |
int[] |
toArray(int[] values) |
List<Integer> |
toList() |
String |
toString() |
checkRange, checkRangeFromTo, clear, isEmpty, mergeSort, quickSort, remove, setSize, sort, sortFromTo, trimToSizepublic void add(int element)
public void addAllOf(AbstractIntList other)
public void addAllOfFromTo(AbstractIntList other, int from, int to)
public void addAllOf(IntArrayList other)
addAllOf in interface IntBufferConsumerpublic void beforeInsert(int index,
int element)
public void beforeInsertAllOfFromTo(int index,
AbstractIntList other,
int from,
int to)
protected void beforeInsertDummies(int index,
int length)
beforeInsertDummies in class AbstractListpublic int binarySearch(int key)
public int binarySearchFromTo(int key,
int from,
int to)
public Object clone()
clone in class PersistentObjectpublic boolean contains(int elem)
public void delete(int element)
public int[] elements()
public AbstractIntList elements(int[] elements)
public abstract void ensureCapacity(int minCapacity)
public void fillFromToWith(int from,
int to,
int val)
public boolean forEach(IntProcedure procedure)
public int get(int index)
protected abstract int getQuick(int index)
public int indexOf(int element)
public int indexOfFromTo(int element,
int from,
int to)
public int lastIndexOf(int element)
public int lastIndexOfFromTo(int element,
int from,
int to)
public void mergeSortFromTo(int from,
int to)
mergeSortFromTo in class AbstractListpublic void mergeSortFromTo(int from,
int to,
IntComparator c)
public AbstractIntList partFromTo(int from, int to)
public void quickSortFromTo(int from,
int to)
quickSortFromTo in class AbstractListpublic void quickSortFromTo(int from,
int to,
IntComparator c)
public boolean removeAll(AbstractIntList other)
public void removeFromTo(int from,
int to)
removeFromTo in class AbstractListpublic void replaceFromToWithFrom(int from,
int to,
AbstractIntList other,
int otherFrom)
public void replaceFromToWithFromTo(int from,
int to,
AbstractIntList other,
int otherFrom,
int otherTo)
public boolean retainAll(AbstractIntList other)
public void reverse()
reverse in class AbstractListpublic void set(int index,
int element)
protected abstract void setQuick(int index,
int element)
protected void setSizeRaw(int newSize)
public int size()
size in class AbstractListpublic AbstractIntList times(int times)
public int[] toArray(int[] values)