public abstract class AbstractObjectList<T> extends AbstractList
int,
float, etc.First see the package summary and
javadoc tree view to get the broad picture.
Note that this implementation is not synchronized.
ArrayList,
Vector,
Arrays,
Serialized Form| Constructor and Description |
|---|
AbstractObjectList() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllOf(Collection<T> collection)
Appends all of the elements of the specified Collection to the receiver.
|
void |
beforeInsertAllOf(int index,
Collection<T> collection)
Inserts all elements of the specified collection before the specified position into the receiver.
|
abstract void |
replaceFromWith(int from,
Collection<T> other)
Replaces the part of the receiver starting at
from (inclusive) with all the elements of the specified
collection. |
beforeInsertDummies, checkRange, checkRangeFromTo, clear, isEmpty, mergeSort, mergeSortFromTo, quickSort, quickSortFromTo, remove, removeFromTo, reverse, setSize, size, sort, sortFromTo, trimToSizeclonepublic void addAllOf(Collection<T> collection)
ClassCastException - if an element in the collection is not of the same parameter type of the receiver.public void beforeInsertAllOf(int index,
Collection<T> collection)
index - index before which to insert first element from the specified collection.collection - the collection to be insertedClassCastException - if an element in the collection is not of the same parameter type of the
receiver.IndexOutOfBoundsException - if index < 0 || index > size().public abstract void replaceFromWith(int from,
Collection<T> other)
from (inclusive) with all the elements of the specified
collection. Does not alter the size of the receiver. Replaces exactly Math.max(0,Math.min(size()-from,
other.size())) elements.from - the index at which to copy the first element from the specified collection.other - Collection to replace part of the receiverIndexOutOfBoundsException - if index < 0 || index >= size().Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.