org.eclipse.net4j.util.concurrent
Class RoundRobinList<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<E>
              extended by java.util.LinkedList<E>
                  extended by org.eclipse.net4j.util.concurrent.RoundRobinList<E>
All Implemented Interfaces:
Serializable, Cloneable, Iterable<E>, Collection<E>, Deque<E>, List<E>, Queue<E>

public final class RoundRobinList<E>
extends LinkedList<E>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
RoundRobinList()
           
RoundRobinList(Collection<? extends E> c)
           
 
Method Summary
 boolean add(E o)
           
 void add(int index, E element)
           
 boolean addAll(Collection<? extends E> c)
           
 boolean addAll(int index, Collection<? extends E> c)
           
 void addFirst(E o)
           
 void addLast(E o)
           
 void clear()
           
 Object clone()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 E element()
           
 void executeReads(Runnable runnable)
           
 void executeWrites(Runnable runnable)
           
 E get(int index)
           
 E getFirst()
           
 E getLast()
           
 int indexOf(Object o)
           
 int lastIndexOf(Object o)
           
 boolean offer(E o)
           
 E peek()
           
 E poll()
           
 E remove()
           
 E remove(int index)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 E removeFirst()
           
 E removeLast()
           
 boolean retainAll(Collection<?> c)
           
 E set(int index, E element)
           
 List<E> subList(int fromIndex, int toIndex)
           
 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
 
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
 
Methods inherited from interface java.util.Deque
iterator
 

Constructor Detail

RoundRobinList

public RoundRobinList()

RoundRobinList

public RoundRobinList(Collection<? extends E> c)
Method Detail

executeReads

public void executeReads(Runnable runnable)

executeWrites

public void executeWrites(Runnable runnable)

add

public void add(int index,
                E element)
Specified by:
add in interface List<E>
Overrides:
add in class LinkedList<E>

add

public boolean add(E o)
Specified by:
add in interface Collection<E>
Specified by:
add in interface Deque<E>
Specified by:
add in interface List<E>
Specified by:
add in interface Queue<E>
Overrides:
add in class LinkedList<E>

addAll

public boolean addAll(Collection<? extends E> c)
Specified by:
addAll in interface Collection<E>
Specified by:
addAll in interface List<E>
Overrides:
addAll in class LinkedList<E>

addAll

public boolean addAll(int index,
                      Collection<? extends E> c)
Specified by:
addAll in interface List<E>
Overrides:
addAll in class LinkedList<E>

addFirst

public void addFirst(E o)
Specified by:
addFirst in interface Deque<E>
Overrides:
addFirst in class LinkedList<E>

addLast

public void addLast(E o)
Specified by:
addLast in interface Deque<E>
Overrides:
addLast in class LinkedList<E>

clear

public void clear()
Specified by:
clear in interface Collection<E>
Specified by:
clear in interface List<E>
Overrides:
clear in class LinkedList<E>

clone

public Object clone()
Overrides:
clone in class LinkedList<E>

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection<E>
Specified by:
contains in interface Deque<E>
Specified by:
contains in interface List<E>
Overrides:
contains in class LinkedList<E>

containsAll

public boolean containsAll(Collection<?> c)
Specified by:
containsAll in interface Collection<E>
Specified by:
containsAll in interface List<E>
Overrides:
containsAll in class AbstractCollection<E>

element

public E element()
Specified by:
element in interface Deque<E>
Specified by:
element in interface Queue<E>
Overrides:
element in class LinkedList<E>

get

public E get(int index)
Specified by:
get in interface List<E>
Overrides:
get in class LinkedList<E>

getFirst

public E getFirst()
Specified by:
getFirst in interface Deque<E>
Overrides:
getFirst in class LinkedList<E>

getLast

public E getLast()
Specified by:
getLast in interface Deque<E>
Overrides:
getLast in class LinkedList<E>

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List<E>
Overrides:
indexOf in class LinkedList<E>

lastIndexOf

public int lastIndexOf(Object o)
Specified by:
lastIndexOf in interface List<E>
Overrides:
lastIndexOf in class LinkedList<E>

offer

public boolean offer(E o)
Specified by:
offer in interface Deque<E>
Specified by:
offer in interface Queue<E>
Overrides:
offer in class LinkedList<E>

peek

public E peek()
Specified by:
peek in interface Deque<E>
Specified by:
peek in interface Queue<E>
Overrides:
peek in class LinkedList<E>

poll

public E poll()
Specified by:
poll in interface Deque<E>
Specified by:
poll in interface Queue<E>
Overrides:
poll in class LinkedList<E>

remove

public E remove()
Specified by:
remove in interface Deque<E>
Specified by:
remove in interface Queue<E>
Overrides:
remove in class LinkedList<E>

remove

public E remove(int index)
Specified by:
remove in interface List<E>
Overrides:
remove in class LinkedList<E>

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<E>
Specified by:
remove in interface Deque<E>
Specified by:
remove in interface List<E>
Overrides:
remove in class LinkedList<E>

removeAll

public boolean removeAll(Collection<?> c)
Specified by:
removeAll in interface Collection<E>
Specified by:
removeAll in interface List<E>
Overrides:
removeAll in class AbstractCollection<E>

removeFirst

public E removeFirst()
Specified by:
removeFirst in interface Deque<E>
Overrides:
removeFirst in class LinkedList<E>

removeLast

public E removeLast()
Specified by:
removeLast in interface Deque<E>
Overrides:
removeLast in class LinkedList<E>

retainAll

public boolean retainAll(Collection<?> c)
Specified by:
retainAll in interface Collection<E>
Specified by:
retainAll in interface List<E>
Overrides:
retainAll in class AbstractCollection<E>

set

public E set(int index,
             E element)
Specified by:
set in interface List<E>
Overrides:
set in class LinkedList<E>

subList

public List<E> subList(int fromIndex,
                       int toIndex)
Specified by:
subList in interface List<E>
Overrides:
subList in class AbstractList<E>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<E>
Specified by:
toArray in interface List<E>
Overrides:
toArray in class LinkedList<E>

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface Collection<E>
Specified by:
toArray in interface List<E>
Overrides:
toArray in class LinkedList<E>


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.