IBM Branch Transformation Toolkit Javadoc

com.ibm.dse.base
Class LinkedList

java.lang.Object
  extended bycom.ibm.dse.base.LinkedList

public class LinkedList
extends java.lang.Object

This class implements a linked list structure of LinkedListElement objects. This kind of structure provides a one step access to the first and the last element of the list.


Field Summary
protected  LinkedListElement head
           
protected  LinkedListElement tail
           
 
Constructor Summary
LinkedList()
          LinkedList default constructor.
 
Method Summary
 void append(long o)
          Appends a new element at the end of the linked list.
 void deleteHead()
          Removes the first element of the list.
 LinkedListElement getHead()
          Returns the first element of the linked list.
 long getHeadData()
          Returns the data contained in the first element of the linked list.
 LinkedListElement getTail()
          Returns the last element of the linked list.
 long getTailData()
          Returns the data contained in the last element of the linked list.
 java.lang.String toString()
          String representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

head

protected LinkedListElement head

tail

protected LinkedListElement tail
Constructor Detail

LinkedList

public LinkedList()
LinkedList default constructor.

Method Detail

append

public void append(long o)
Appends a new element at the end of the linked list.

Parameters:
o - long - The object to append

deleteHead

public void deleteHead()
Removes the first element of the list.


getHead

public LinkedListElement getHead()
Returns the first element of the linked list.

Returns:
LinkedListElement

getHeadData

public long getHeadData()
Returns the data contained in the first element of the linked list.

Returns:
LinkedListElement

getTailData

public long getTailData()
Returns the data contained in the last element of the linked list.

Returns:
LinkedListElement

getTail

public LinkedListElement getTail()
Returns the last element of the linked list.

Returns:
LinkedListElement

toString

public java.lang.String toString()
String representation of the object.

Returns:
java.lang.String

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005