de.cau.cs.kieler.sj.util
Class LinkedList<T>

java.lang.Object
  extended by de.cau.cs.kieler.sj.util.AbstractCollection<T>
      extended by de.cau.cs.kieler.sj.util.LinkedList<T>
Type Parameters:
T - The type of the elements insert into the list.
All Implemented Interfaces:
Iterable<T>

public class LinkedList<T>
extends AbstractCollection<T>

A subset of a classical LinkedList. Should be fast and use less resources.

Rating red

Field Summary
 
Fields inherited from class de.cau.cs.kieler.sj.util.AbstractCollection
cursor, lastContainer, leftSentinel, size
 
Constructor Summary
LinkedList()
          Creates a new and empty LinkedList.
 
Method Summary
 void add(T o)
          Adds a given object into the list.
 
Methods inherited from class de.cau.cs.kieler.sj.util.AbstractCollection
clear, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkedList

public LinkedList()
Creates a new and empty LinkedList.

Method Detail

add

public void add(T o)
Adds a given object into the list. The object must be from the same type as the class param.

Specified by:
add in class AbstractCollection<T>
Parameters:
o - The object to add to the list.