public class GrowingRandomAccessList<E> extends AbstractList<E> implements Queue<E>, RandomAccess
modCount
Constructor and Description |
---|
GrowingRandomAccessList(Class<E> componentType,
int pageCapacity) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
void |
add(int index,
E element) |
boolean |
addAll(int index,
Collection<? extends E> c) |
void |
addFirst(E e) |
void |
addLast(E e) |
void |
clear() |
protected E[] |
createPage() |
Iterator<E> |
descendingIterator() |
E |
element() |
E |
get(int index) |
E |
getFirst() |
E |
getLast() |
protected E[] |
getPage(int index) |
protected int |
getPageIndex(int index) |
boolean |
offer(E e) |
boolean |
offerFirst(E e) |
boolean |
offerLast(E e) |
E |
peek() |
E |
peekFirst() |
E |
peekLast() |
E |
poll() |
E |
pollFirst() |
E |
pollLast() |
E |
pop() |
void |
push(E e) |
E |
remove() |
E |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
E |
removeFirst() |
boolean |
removeFirstOccurrence(Object o) |
E |
removeLast() |
boolean |
removeLastOccurrence(Object o) |
boolean |
retainAll(Collection<?> c) |
E |
set(int index,
E element) |
int |
size() |
equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, removeIf, spliterator, stream, toArray, toArray
addAll, contains, containsAll, isEmpty, replaceAll, sort, spliterator, toArray, toArray
public E get(int index)
public int size()
size
in interface Collection<E>
size
in interface List<E>
size
in class AbstractCollection<E>
public void addFirst(E e)
public void addLast(E e)
public boolean add(E e)
public void add(int index, E element)
public E remove(int index)
public void clear()
clear
in interface Collection<E>
clear
in interface List<E>
clear
in class AbstractList<E>
public boolean addAll(int index, Collection<? extends E> c)
public boolean remove(Object o)
remove
in interface Collection<E>
remove
in interface List<E>
remove
in class AbstractCollection<E>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<E>
removeAll
in interface List<E>
removeAll
in class AbstractCollection<E>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<E>
retainAll
in interface List<E>
retainAll
in class AbstractCollection<E>
public boolean offerFirst(E e)
public boolean offerLast(E e)
public E removeFirst()
public E removeLast()
public E pollFirst()
public E pollLast()
public E getFirst()
public E getLast()
public E peekFirst()
public E peekLast()
public boolean removeFirstOccurrence(Object o)
public boolean removeLastOccurrence(Object o)
public void push(E e)
public E pop()
protected E[] createPage()
protected E[] getPage(int index)
protected int getPageIndex(int index)
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html