giden.GRDS
Class SingleLinkList
java.lang.Object
|
+--giden.GRDS.LinkList
|
+--giden.GRDS.SingleLinkList
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- Direct Known Subclasses:
- DoubleLinkList
- public class SingleLinkList
- extends LinkList
- implements java.io.Serializable
Copyright (c) 1993-2004 C. R. Coullard, D. S. Dilworth, J. H. Owen,
All Rights Reserved.
We make no representations or warranties about the suitability of
the software, either express or implied, including but not limited
to the implied warranties of merchantability, fitness for a
particular purpose, or non-infringement. We shall not be liable for
any damages suffered by user as a result of using, modifying or
distributing this software or its derivatives.
SingleLinkList is a link list class that inherits the LinkList
base class and is inherited by the DoubleLinkList class. Although the
current LinkList class implements a double link list, the
future design is to implement the single link
functionality in the SingleLinkList class. To ensure future
compatibility, users should create SingleLinkList
(or DoubleLinkList) objects; these objects can then be
manipulated as LinkList objects.
A LinkList is comprised of ListEntry
objects. Each ListEntry object contains link information
for the list and the list-item of interest to the application.
The LinkList class only provides methods for iterating with ListEntry
objects; the user can access the underlying list-items by
manipulating the ListEntry objects.
The ListIter class is an
easier and recommended way of iterating and accessing the list-items.
Any method returning
a ListEntry will return null if accesses are attempted on
an empty list or beyond the boundaries of the list.
Copyright (c) 1993-2003 C. R. Coullard, D. S. Dilworth, J. H. Owen,
All Rights Reserved.
- Version:
- 4.0a 2004 08 27
- Author:
- D. S. Dilworth
- See Also:
Network
,
DoubleLinkList
,
LinkList
,
ListEntry
,
ListIter
, Serialized Form
Methods inherited from class giden.GRDS.LinkList |
AddItem, clone, DeleteContents, DeleteEntry, GetFirstEntry, GetHead, GetLastEntry, GetNextEntry, GetPrevEntry, GetSize, GetTail, InsertBefore, JoinList |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleLinkList
public SingleLinkList()
- Creates an empty link list