org.eclipse.net4j.util.concurrent
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.List<E>, java.util.Queue<E>
public final class RoundRobinList<E>
- extends java.util.LinkedList<E>
- See Also:
- Serialized Form
Fields inherited from class java.util.AbstractList |
modCount |
Methods inherited from class java.util.LinkedList |
listIterator, size |
Methods inherited from class java.util.AbstractSequentialList |
iterator |
Methods inherited from class java.util.AbstractList |
equals, hashCode, listIterator, removeRange |
Methods inherited from class java.util.AbstractCollection |
isEmpty, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
equals, hashCode, isEmpty, iterator, listIterator |
RoundRobinList
public RoundRobinList()
RoundRobinList
public RoundRobinList(java.util.Collection<? extends E> c)
executeReads
public void executeReads(java.lang.Runnable runnable)
executeWrites
public void executeWrites(java.lang.Runnable runnable)
add
public void add(int index,
E element)
- Specified by:
add
in interface java.util.List<E>
- Overrides:
add
in class java.util.LinkedList<E>
add
public boolean add(E o)
- Specified by:
add
in interface java.util.Collection<E>
- Specified by:
add
in interface java.util.List<E>
- Overrides:
add
in class java.util.LinkedList<E>
addAll
public boolean addAll(java.util.Collection<? extends E> c)
- Specified by:
addAll
in interface java.util.Collection<E>
- Specified by:
addAll
in interface java.util.List<E>
- Overrides:
addAll
in class java.util.LinkedList<E>
addAll
public boolean addAll(int index,
java.util.Collection<? extends E> c)
- Specified by:
addAll
in interface java.util.List<E>
- Overrides:
addAll
in class java.util.LinkedList<E>
addFirst
public void addFirst(E o)
- Overrides:
addFirst
in class java.util.LinkedList<E>
addLast
public void addLast(E o)
- Overrides:
addLast
in class java.util.LinkedList<E>
clear
public void clear()
- Specified by:
clear
in interface java.util.Collection<E>
- Specified by:
clear
in interface java.util.List<E>
- Overrides:
clear
in class java.util.LinkedList<E>
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.util.LinkedList<E>
contains
public boolean contains(java.lang.Object o)
- Specified by:
contains
in interface java.util.Collection<E>
- Specified by:
contains
in interface java.util.List<E>
- Overrides:
contains
in class java.util.LinkedList<E>
containsAll
public boolean containsAll(java.util.Collection<?> c)
- Specified by:
containsAll
in interface java.util.Collection<E>
- Specified by:
containsAll
in interface java.util.List<E>
- Overrides:
containsAll
in class java.util.AbstractCollection<E>
element
public E element()
- Specified by:
element
in interface java.util.Queue<E>
- Overrides:
element
in class java.util.LinkedList<E>
get
public E get(int index)
- Specified by:
get
in interface java.util.List<E>
- Overrides:
get
in class java.util.LinkedList<E>
getFirst
public E getFirst()
- Overrides:
getFirst
in class java.util.LinkedList<E>
getLast
public E getLast()
- Overrides:
getLast
in class java.util.LinkedList<E>
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOf
in interface java.util.List<E>
- Overrides:
indexOf
in class java.util.LinkedList<E>
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOf
in interface java.util.List<E>
- Overrides:
lastIndexOf
in class java.util.LinkedList<E>
offer
public boolean offer(E o)
- Specified by:
offer
in interface java.util.Queue<E>
- Overrides:
offer
in class java.util.LinkedList<E>
peek
public E peek()
- Specified by:
peek
in interface java.util.Queue<E>
- Overrides:
peek
in class java.util.LinkedList<E>
poll
public E poll()
- Specified by:
poll
in interface java.util.Queue<E>
- Overrides:
poll
in class java.util.LinkedList<E>
remove
public E remove()
- Specified by:
remove
in interface java.util.Queue<E>
- Overrides:
remove
in class java.util.LinkedList<E>
remove
public E remove(int index)
- Specified by:
remove
in interface java.util.List<E>
- Overrides:
remove
in class java.util.LinkedList<E>
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove
in interface java.util.Collection<E>
- Specified by:
remove
in interface java.util.List<E>
- Overrides:
remove
in class java.util.LinkedList<E>
removeAll
public boolean removeAll(java.util.Collection<?> c)
- Specified by:
removeAll
in interface java.util.Collection<E>
- Specified by:
removeAll
in interface java.util.List<E>
- Overrides:
removeAll
in class java.util.AbstractCollection<E>
removeFirst
public E removeFirst()
- Overrides:
removeFirst
in class java.util.LinkedList<E>
removeLast
public E removeLast()
- Overrides:
removeLast
in class java.util.LinkedList<E>
retainAll
public boolean retainAll(java.util.Collection<?> c)
- Specified by:
retainAll
in interface java.util.Collection<E>
- Specified by:
retainAll
in interface java.util.List<E>
- Overrides:
retainAll
in class java.util.AbstractCollection<E>
set
public E set(int index,
E element)
- Specified by:
set
in interface java.util.List<E>
- Overrides:
set
in class java.util.LinkedList<E>
subList
public java.util.List<E> subList(int fromIndex,
int toIndex)
- Specified by:
subList
in interface java.util.List<E>
- Overrides:
subList
in class java.util.AbstractList<E>
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interface java.util.Collection<E>
- Specified by:
toArray
in interface java.util.List<E>
- Overrides:
toArray
in class java.util.LinkedList<E>
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray
in interface java.util.Collection<E>
- Specified by:
toArray
in interface java.util.List<E>
- Overrides:
toArray
in class java.util.LinkedList<E>