All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----Graphomat.DLinkedList
Summary |
public class DLinkedList extends java.lang.Object { // Constructors 1 public DLinkedList(); // Methods 5 public void deleteElement(Object); public int getElementCount(); public Enumeration getEnum(); public void insertElement(Object); public String toString(); }
A simple implementation of a double linked list. Objects can be be stored and deleted.
You have also the possibility to walk through the whole list be getting an
Enumeration
with getEnum()
. Infact this is the only possibility
to read the lists objects.
Constructors |
· DLinkedList | Summary | Top |
public DLinkedList()
Methods |
· insertElement | Summary | Top |
public void insertElement(Object data)
Inserts a new object at the end of the list.
· deleteElement | Summary | Top |
public void deleteElement(Object data)
Deletes a object of the list. If the object can't be found the method ignores your request.
· getEnum | Summary | Top |
public Enumeration getEnum()
Returns an
Enumeration
containing all elements.
· getElementCount | Summary | Top |
public int getElementCount()
Returns the number of objects in the list.
· toString | Summary | Top |
public String toString()
Calls
toString()
on every Element of the list and returns it as a String.
- Overrides:
- toString in class Object
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7