Class GrowingRandomAccessList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.eclipse.net4j.util.collection.GrowingRandomAccessList<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,List<E>,Queue<E>,RandomAccess
- Since:
- 3.3
- Author:
- Eike Stepper
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends E> c) voidvoidvoidclear()protected E[]element()get(int index) getFirst()getLast()protected E[]getPage(int index) protected intgetPageIndex(int index) booleanbooleanofferFirst(E e) booleanpeek()peekLast()poll()pollLast()pop()voidremove()remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanbooleanbooleanretainAll(Collection<?> c) intsize()Methods inherited from class java.util.AbstractList
equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, replaceAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
GrowingRandomAccessList
-
-
Method Details
-
get
-
size
public int size()- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein interfaceList<E>- Specified by:
sizein classAbstractCollection<E>
-
addFirst
-
addLast
-
add
-
set
-
add
-
remove
-
clear
public void clear()- Specified by:
clearin interfaceCollection<E>- Specified by:
clearin interfaceList<E>- Overrides:
clearin classAbstractList<E>
-
addAll
-
remove
- Specified by:
removein interfaceCollection<E>- Specified by:
removein interfaceList<E>- Overrides:
removein classAbstractCollection<E>
-
removeAll
- Specified by:
removeAllin interfaceCollection<E>- Specified by:
removeAllin interfaceList<E>- Overrides:
removeAllin classAbstractCollection<E>
-
retainAll
- Specified by:
retainAllin interfaceCollection<E>- Specified by:
retainAllin interfaceList<E>- Overrides:
retainAllin classAbstractCollection<E>
-
offerFirst
-
offerLast
-
removeFirst
-
removeLast
-
pollFirst
-
pollLast
-
getFirst
-
getLast
-
peekFirst
-
peekLast
-
removeFirstOccurrence
-
removeLastOccurrence
-
offer
-
remove
-
poll
-
element
-
peek
-
push
-
pop
-
descendingIterator
-
createPage
-
getPage
-
getPageIndex
protected int getPageIndex(int index)
-