Class GrowingRandomAccessList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.eclipse.net4j.util.collection.GrowingRandomAccessList<E>
- Type Parameters:
E- the element type
- All Implemented Interfaces:
Iterable<E>, Collection<E>, List<E>, Queue<E>, RandomAccess, SequencedCollection<E>
- Since:
- 3.3
- Author:
- Eike Stepper
-
Field Summary
Fields inherited from class 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 AbstractList
equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
addAll, contains, containsAll, isEmpty, replaceAll, reversed, 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
- Specified by:
removeFirstin interfaceList<E>- Specified by:
removeFirstin interfaceSequencedCollection<E>
-
removeLast
- Specified by:
removeLastin interfaceList<E>- Specified by:
removeLastin interfaceSequencedCollection<E>
-
pollFirst
-
pollLast
-
getFirst
-
getLast
-
peekFirst
-
peekLast
-
removeFirstOccurrence
-
removeLastOccurrence
-
offer
-
remove
-
poll
-
element
-
peek
-
push
-
pop
-
descendingIterator
-
createPage
-
getPage
-
getPageIndex
protected int getPageIndex(int index)
-