E - type of elements stored in the listpublic class MaxList<E> extends GapList<E>
GapList,
Serialized Form| Constructor and Description |
|---|
MaxList(int maxSize)
Constructor.
|
MaxList(MaxList<E> that)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ensureCapacity(int minCapacity)
Increases the capacity of this GapList instance, if
necessary, to ensure that it can hold at least the number of elements
specified by the minimum capacity argument.
|
int |
maxSize()
Returns maximum size of list.
|
add, add, addAll, addAll, addAll, addAll, addAll, addAll, addFirst, addLast, binarySearch, binarySearch, capacity, clear, clone, contains, containsAll, containsAny, copy, copy, copy, create, create, descendingIterator, element, EMPTY, equals, fill, fill, get, get, getArray, getFirst, getLast, hashCode, indexOf, init, isEmpty, iterator, lastIndexOf, listIterator, listIterator, move, move, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, remove, removeAll, removeAll, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, resize, retainAll, retainAll, reverse, reverse, rotate, rotate, set, setAll, setAll, setAll, size, sort, sort, swap, swap, toArray, toArray, toArray, toString, trimToSize, unmodifiableListpublic MaxList(int maxSize)
maxSize - maximum size of listpublic int maxSize()
public void ensureCapacity(int minCapacity)
GapListensureCapacity in class GapList<E>minCapacity - the desired minimum capacity