fr.ove.utils
Class LinkedElement

java.lang.Object
  extended byfr.ove.utils.LinkedElement
All Implemented Interfaces:
java.io.Serializable

public class LinkedElement
extends java.lang.Object
implements java.io.Serializable

A element of linked structure (queue, lists, etc..

Contains the element added in the structure and the reference to the previous and the next element in the structure.

Version:
1.0 28/06/2000
Author:
© 2000 DIRAT Laurent
See Also:
Serialized Form

Constructor Summary
LinkedElement()
          The default contstructor
LinkedElement(java.lang.Object element)
          The contstructor
 
Method Summary
 java.lang.Object getElement()
          Returns the element
 LinkedElement getNext()
          Returns the next element of the instance
 LinkedElement getPrevious()
          Returns the previous element of the instance
 void remove()
          Removes the instance from the structure
 void setElement(java.lang.Object element)
          Sets the element
 void setNext(LinkedElement next)
          Sets the next element of the instance
 void setPrevious(LinkedElement previous)
          Sets the previous element of the instance
 java.lang.String toString()
          Returns a string representation of the element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinkedElement

public LinkedElement()
The default contstructor


LinkedElement

public LinkedElement(java.lang.Object element)
The contstructor

Parameters:
element - the element in the structure
Method Detail

setElement

public void setElement(java.lang.Object element)
Sets the element


getElement

public java.lang.Object getElement()
Returns the element


setPrevious

public void setPrevious(LinkedElement previous)
Sets the previous element of the instance


getPrevious

public LinkedElement getPrevious()
Returns the previous element of the instance


setNext

public void setNext(LinkedElement next)
Sets the next element of the instance


getNext

public LinkedElement getNext()
Returns the next element of the instance


remove

public void remove()
Removes the instance from the structure


toString

public java.lang.String toString()
Returns a string representation of the element



Copyright © 1999-2007 Universit?© de Nice Sophia-Antipolis, I3S, Ove SARL, DFKI and Universit?§t des Saarlandes. All Rights Reserved.