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 void
add(int index, E element)
boolean
add(E o)
boolean
addAll(int index, java.util.Collection<? extends E> c)
boolean
addAll(java.util.Collection<? extends E> c)
void
addFirst(E o)
void
addLast(E o)
void
clear()
java.lang.Object
clone()
boolean
contains(java.lang.Object o)
boolean
containsAll(java.util.Collection<?> c)
E
element()
void
executeReads(java.lang.Runnable runnable)
void
executeWrites(java.lang.Runnable runnable)
E
get(int index)
E
getFirst()
E
getLast()
int
indexOf(java.lang.Object o)
int
lastIndexOf(java.lang.Object o)
boolean
offer(E o)
E
peek()
E
poll()
E
remove()
E
remove(int index)
boolean
remove(java.lang.Object o)
boolean
removeAll(java.util.Collection<?> c)
E
removeFirst()
E
removeLast()
boolean
retainAll(java.util.Collection<?> c)
E
set(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:
clone
in 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()
-
-