|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.ove.utils.LinkedElement
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.
| 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 |
public LinkedElement()
public LinkedElement(java.lang.Object element)
element - the element in the structure| Method Detail |
public void setElement(java.lang.Object element)
public java.lang.Object getElement()
public void setPrevious(LinkedElement previous)
public LinkedElement getPrevious()
public void setNext(LinkedElement next)
public LinkedElement getNext()
public void remove()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||