org.mockserver.collections
Class CircularLinkedList<V>

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<V>
                  extended by org.mockserver.collections.CircularLinkedList<V>
All Implemented Interfaces:
Serializable, Cloneable, Iterable<V>, Collection<V>, Deque<V>, List<V>, Queue<V>

public class CircularLinkedList<V>
extends LinkedList<V>

Author:
jamesdbloom
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
CircularLinkedList(int maxSize)
           
 
Method Summary
 void add(int index, V element)
           
 boolean add(V v)
           
 boolean addAll(Collection<? extends V> c)
           
 boolean addAll(int index, Collection<? extends V> c)
           
 void addFirst(V v)
           
 void addLast(V v)
           
 
Methods inherited from class java.util.LinkedList
clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 
Methods inherited from interface java.util.Deque
iterator
 

Constructor Detail

CircularLinkedList

public CircularLinkedList(int maxSize)
Method Detail

addFirst

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

addLast

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

add

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

addAll

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

addAll

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

add

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


Copyright © 2017. All rights reserved.