public final class RoundRobinList<E> extends LinkedList<E>
modCount
Constructor and Description |
---|
RoundRobinList() |
RoundRobinList(Collection<? extends E> c) |
Modifier and Type | Method and Description |
---|---|
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) |
descendingIterator, listIterator, offerFirst, offerLast, peekFirst, peekLast, pollFirst, pollLast, pop, push, removeFirstOccurrence, removeLastOccurrence, size
iterator
equals, hashCode, listIterator, removeRange
isEmpty, toString
public RoundRobinList()
public RoundRobinList(Collection<? extends E> c)
public void executeReads(Runnable runnable)
public void executeWrites(Runnable runnable)
public void add(int index, E element)
public boolean add(E o)
public boolean addAll(Collection<? extends E> c)
addAll
in interface Collection<E>
addAll
in interface List<E>
addAll
in class LinkedList<E>
public boolean addAll(int index, Collection<? extends E> c)
public void addFirst(E o)
public void addLast(E o)
public void clear()
clear
in interface Collection<E>
clear
in interface List<E>
clear
in class LinkedList<E>
public Object clone()
clone
in class LinkedList<E>
public boolean contains(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<E>
containsAll
in interface List<E>
containsAll
in class AbstractCollection<E>
public E element()
public E get(int index)
public E getFirst()
public E getLast()
public int indexOf(Object o)
public int lastIndexOf(Object o)
lastIndexOf
in interface List<E>
lastIndexOf
in class LinkedList<E>
public boolean offer(E o)
public E peek()
public E poll()
public E remove()
public E remove(int index)
public boolean remove(Object o)
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<E>
removeAll
in interface List<E>
removeAll
in class AbstractCollection<E>
public E removeFirst()
removeFirst
in interface Deque<E>
removeFirst
in class LinkedList<E>
public E removeLast()
removeLast
in interface Deque<E>
removeLast
in class LinkedList<E>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<E>
retainAll
in interface List<E>
retainAll
in class AbstractCollection<E>
public Object[] toArray()
toArray
in interface Collection<E>
toArray
in interface List<E>
toArray
in class LinkedList<E>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<E>
toArray
in interface List<E>
toArray
in class LinkedList<E>
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.