All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----java.util.Observable | +----graphomat.util.ObservSerializable | +----graphomat.util.DLinkedList
Summary |
public class DLinkedList extends graphomat.util.ObservSerializable { // Fields 2 public static final Object ADDED; public static final Object DELETED; // Constructors 1 public DLinkedList(); // Methods 7 public void deleteElement(Object); public int getElementCount(); public Enumeration getEnum(); public boolean inList(Object); public void insertElement(Object); public void notifyObservers(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.
Fields |
· ADDED | Summary | Top |
public static final Object ADDED
· DELETED | Summary | Top |
public static final Object DELETED
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.
· inList | Summary | Top |
public boolean inList(Object data)
Searches for the requested Element in the List.
· notifyObservers | Summary | Top |
public void notifyObservers(Object arg)
- Overrides:
- notifyObservers in class Observable
· 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