Class GrowingRandomAccessList<E>
- java.lang.Object
- 
- java.util.AbstractCollection<E>
- 
- java.util.AbstractList<E>
- 
- org.eclipse.net4j.util.collection.GrowingRandomAccessList<E>
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Iterable<E>,- java.util.Collection<E>,- java.util.List<E>,- java.util.Queue<E>,- java.util.RandomAccess
 
 public class GrowingRandomAccessList<E> extends java.util.AbstractList<E> implements java.util.Queue<E>, java.util.RandomAccess- Since:
- 3.3
- Author:
- Eike Stepper
 
- 
- 
Constructor SummaryConstructors Constructor Description GrowingRandomAccessList(java.lang.Class<E> componentType, int pageCapacity)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, E element)booleanadd(E e)booleanaddAll(int index, java.util.Collection<? extends E> c)voidaddFirst(E e)voidaddLast(E e)voidclear()protected E[]createPage()java.util.Iterator<E>descendingIterator()Eelement()Eget(int index)EgetFirst()EgetLast()protected E[]getPage(int index)protected intgetPageIndex(int index)booleanoffer(E e)booleanofferFirst(E e)booleanofferLast(E e)Epeek()EpeekFirst()EpeekLast()Epoll()EpollFirst()EpollLast()Epop()voidpush(E e)Eremove()Eremove(int index)booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)EremoveFirst()booleanremoveFirstOccurrence(java.lang.Object o)EremoveLast()booleanremoveLastOccurrence(java.lang.Object o)booleanretainAll(java.util.Collection<?> c)Eset(int index, E element)intsize()- 
Methods inherited from class java.util.AbstractListequals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
 - 
Methods inherited from class java.util.AbstractCollectionaddAll, contains, containsAll, isEmpty, toArray, toArray, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
GrowingRandomAccessListpublic GrowingRandomAccessList(java.lang.Class<E> componentType, int pageCapacity) 
 
- 
 - 
Method Detail- 
getpublic E get(int index) 
 - 
sizepublic int size() 
 - 
addFirstpublic void addFirst(E e) 
 - 
addLastpublic void addLast(E e) 
 - 
addpublic boolean add(E e) 
 - 
addpublic void add(int index, E element)
 - 
removepublic E remove(int index) 
 - 
clearpublic void clear() 
 - 
addAllpublic boolean addAll(int index, java.util.Collection<? extends E> c)
 - 
removepublic boolean remove(java.lang.Object o) 
 - 
removeAllpublic boolean removeAll(java.util.Collection<?> c) 
 - 
retainAllpublic boolean retainAll(java.util.Collection<?> c) 
 - 
offerFirstpublic boolean offerFirst(E e) 
 - 
offerLastpublic boolean offerLast(E e) 
 - 
removeFirstpublic E removeFirst() 
 - 
removeLastpublic E removeLast() 
 - 
pollFirstpublic E pollFirst() 
 - 
pollLastpublic E pollLast() 
 - 
getFirstpublic E getFirst() 
 - 
getLastpublic E getLast() 
 - 
peekFirstpublic E peekFirst() 
 - 
peekLastpublic E peekLast() 
 - 
removeFirstOccurrencepublic boolean removeFirstOccurrence(java.lang.Object o) 
 - 
removeLastOccurrencepublic boolean removeLastOccurrence(java.lang.Object o) 
 - 
pushpublic void push(E e) 
 - 
poppublic E pop() 
 - 
descendingIteratorpublic java.util.Iterator<E> descendingIterator() 
 - 
createPageprotected E[] createPage() 
 - 
getPageprotected E[] getPage(int index) 
 - 
getPageIndexprotected int getPageIndex(int index) 
 
- 
 
-