rebuild.collections
Class LinkedList

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by java.util.Vector
              extended by rebuild.collections.LinkedList
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess

public class LinkedList
extends java.util.Vector

Simplistic linked list based off a Vector.

Since:
BBX 1.2.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
LinkedList()
           
 
Method Summary
 void addFirst(java.lang.Object object)
          Adds the specified object at the beginning of this LinkedList.
 java.lang.Object removeFirst()
          Removes the first object from this LinkedList.
 java.lang.Object removeLast()
          Removes the last object from this LinkedList.
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

LinkedList

public LinkedList()
Method Detail

addFirst

public void addFirst(java.lang.Object object)
Adds the specified object at the beginning of this LinkedList.

Parameters:
object - The object to add.

removeLast

public java.lang.Object removeLast()
Removes the last object from this LinkedList.

Returns:
the removed object.
Throws:
java.util.NoSuchElementException - if this LinkedList is empty.

removeFirst

public java.lang.Object removeFirst()
Removes the first object from this LinkedList.

Returns:
the removed object.
Throws:
java.util.NoSuchElementException - if this LinkedList is empty.