java.util
Class LinkedList<E>

java.lang.Object
  extended by java.util.LinkedList<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, List<E>

public class LinkedList<E>
extends Object

Author:
Michael Mirwaldt

Field Summary
protected  int modCount
           
 
Constructor Summary
LinkedList()
           
LinkedList(Collection<? extends E> c)
           
 
Method Summary
 boolean add(E e)
           
 void add(int index, E e)
           
 boolean addAll(Collection<? extends E> c)
           
 boolean addAll(int index, Collection<? extends E> c)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 boolean equals(Object o)
           
 E get(int index)
           
 int hashCode()
           
 int indexOf(Object o)
           
 boolean isEmpty()
           
 Iterator<E> iterator()
           
 int lastIndexOf(Object o)
           
 ListIterator<E> listIterator()
           
 ListIterator<E> listIterator(int index)
           
 E remove(int index)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 E set(int index, E e)
           
 int size()
           
 List<E> subList(int start, int end)
           
 Object[] toArray()
           
<T> T[]
toArray(T[] dest)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
containsAll, isEmpty, removeAll, retainAll, toArray, toArray
 

Field Detail

modCount

protected transient int modCount
Constructor Detail

LinkedList

public LinkedList()

LinkedList

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

add

public boolean add(E e)

remove

public boolean remove(Object o)

size

public int size()

clear

public void clear()

add

public void add(int index,
                E e)

addAll

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

addAll

public boolean addAll(int index,
                      Collection<? extends E> c)

get

public E get(int index)

set

public E set(int index,
             E e)

remove

public E remove(int index)

indexOf

public int indexOf(Object o)

lastIndexOf

public int lastIndexOf(Object o)

listIterator

public ListIterator<E> listIterator(int index)

subList

public List<E> subList(int start,
                       int end)

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection<E>

equals

public boolean equals(Object o)
Specified by:
equals in interface Collection<E>
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection<E>
Overrides:
hashCode in class Object

iterator

public Iterator<E> iterator()
Specified by:
iterator in interface Iterable<E>
Specified by:
iterator in interface Collection<E>

listIterator

public ListIterator<E> listIterator()
Specified by:
listIterator in interface List<E>

containsAll

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

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<E>

removeAll

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

retainAll

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

toArray

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

toArray

public <T> T[] toArray(T[] dest)
Specified by:
toArray in interface Collection<E>

toString

public String toString()
Overrides:
toString in class Object