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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends E> c) void
void
void
clear()
protected E[]
element()
get
(int index) getFirst()
getLast()
protected E[]
getPage
(int index) protected int
getPageIndex
(int index) boolean
boolean
offerFirst
(E e) boolean
peek()
peekLast()
poll()
pollLast()
pop()
void
remove()
remove
(int index) boolean
boolean
removeAll
(Collection<?> c) boolean
boolean
boolean
retainAll
(Collection<?> c) int
size()
Methods inherited from class java.util.AbstractList
equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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:
size
in interfaceCollection<E>
- Specified by:
size
in interfaceList<E>
- Specified by:
size
in classAbstractCollection<E>
-
addFirst
-
addLast
-
add
-
set
-
add
-
remove
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<E>
- Specified by:
clear
in interfaceList<E>
- Overrides:
clear
in classAbstractList<E>
-
addAll
-
remove
- Specified by:
remove
in interfaceCollection<E>
- Specified by:
remove
in interfaceList<E>
- Overrides:
remove
in classAbstractCollection<E>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<E>
- Specified by:
removeAll
in interfaceList<E>
- Overrides:
removeAll
in classAbstractCollection<E>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<E>
- Specified by:
retainAll
in interfaceList<E>
- Overrides:
retainAll
in 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)
-