Class RoundRobinList<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.AbstractSequentialList<E>
-
- java.util.LinkedList<E>
-
- org.eclipse.net4j.util.concurrent.RoundRobinList<E>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<E>,java.util.Collection<E>,java.util.Deque<E>,java.util.List<E>,java.util.Queue<E>
public final class RoundRobinList<E> extends java.util.LinkedList<E>- Author:
- Eike Stepper
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RoundRobinList()RoundRobinList(java.util.Collection<? extends E> c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, E element)booleanadd(E o)booleanaddAll(int index, java.util.Collection<? extends E> c)booleanaddAll(java.util.Collection<? extends E> c)voidaddFirst(E o)voidaddLast(E o)voidclear()java.lang.Objectclone()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)Eelement()voidexecuteReads(java.lang.Runnable runnable)voidexecuteWrites(java.lang.Runnable runnable)Eget(int index)EgetFirst()EgetLast()intindexOf(java.lang.Object o)intlastIndexOf(java.lang.Object o)booleanoffer(E o)Epeek()Epoll()Eremove()Eremove(int index)booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)EremoveFirst()EremoveLast()booleanretainAll(java.util.Collection<?> c)Eset(int index, E element)java.util.List<E>subList(int fromIndex, int toIndex)java.lang.Object[]toArray()<T> T[]toArray(T[] a)-
Methods inherited from class java.util.LinkedList
descendingIterator, listIterator, offerFirst, offerLast, peekFirst, peekLast, pollFirst, pollLast, pop, push, removeFirstOccurrence, removeLastOccurrence, size, spliterator
-
-
-
-
Constructor Detail
-
RoundRobinList
public RoundRobinList()
-
RoundRobinList
public RoundRobinList(java.util.Collection<? extends E> c)
-
-
Method Detail
-
executeReads
public void executeReads(java.lang.Runnable runnable)
-
executeWrites
public void executeWrites(java.lang.Runnable runnable)
-
add
public void add(int index, E element)
-
add
public boolean add(E o)
-
addAll
public boolean addAll(java.util.Collection<? extends E> c)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends E> c)
-
addFirst
public void addFirst(E o)
-
addLast
public void addLast(E o)
-
clear
public void clear()
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.util.LinkedList<E>
-
contains
public boolean contains(java.lang.Object o)
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
-
element
public E element()
-
get
public E get(int index)
-
getFirst
public E getFirst()
-
getLast
public E getLast()
-
indexOf
public int indexOf(java.lang.Object o)
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
-
offer
public boolean offer(E o)
-
peek
public E peek()
-
poll
public E poll()
-
remove
public E remove()
-
remove
public E remove(int index)
-
remove
public boolean remove(java.lang.Object o)
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
removeFirst
public E removeFirst()
-
removeLast
public E removeLast()
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
subList
public java.util.List<E> subList(int fromIndex, int toIndex)
-
toArray
public java.lang.Object[] toArray()
-
-