Opus5
Class LinkedList.Element

java.lang.Object
  |
  +--Opus5.LinkedList.Element
Enclosing class:
LinkedList

public final class LinkedList.Element
extends java.lang.Object

An element of a linked list.

Version:
$Id: LinkedList.java,v 3.2 1998/07/28 01:40:45 brpreiss Exp $
Author:
Bruno R. Preiss, P.Eng.

Method Summary
 void extract()
          Extracts this list element fromt the linked list.
 java.lang.Object getDatum()
          Returns the object in this list element.
 LinkedList.Element getNext()
          Returns the next list element in the list.
 void insertAfter(java.lang.Object item)
          Inserts a list element that contains the specified object in the linked list after this list element.
 void insertBefore(java.lang.Object item)
          Inserts a list element that contains the specified object in the linked list before this list element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDatum

public java.lang.Object getDatum()
Returns the object in this list element.
Returns:
The object in this list element.

getNext

public LinkedList.Element getNext()
Returns the next list element in the list.
Returns:
The next list element in the list.

insertAfter

public void insertAfter(java.lang.Object item)
Inserts a list element that contains the specified object in the linked list after this list element.
Parameters:
item - The object to be inserted into the linked list.

insertBefore

public void insertBefore(java.lang.Object item)
Inserts a list element that contains the specified object in the linked list before this list element.
Parameters:
item - The object to be inserted into the linked list.

extract

public void extract()
Extracts this list element fromt the linked list.
Throws:
InvalidOperationException - If this list element is not in the linked list.