|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--giden.GRDS.ListIter
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.
ListIter provides methods for accessing LinkList, SingleLinkList, and DoubleLinkList objects, and is the recommended way of manipulating these link list objects. The ListIter methods include forward and backward iteration through the list and retrieval of the list-item. It does not provide methods for altering the list contents; those methods are provided by the link list classes. A newly created ListIter is initialized to null. At some point prior to using a newly created ListIter to access the list, GetFirstItem() or GetLastItem() must be called.
Copyright (c) 1993-2003 C. R. Coullard, D. S. Dilworth, J. H. Owen, All Rights Reserved.
DoubleLinkList
,
LinkList
,
ListEntry
,
Network
,
SingleLinkList
Field Summary | |
ListEntry |
Entry
Internal data member |
LinkList |
List
Internal data member |
Constructor Summary | |
ListIter(LinkList list)
Creates a ListIter object for the given list and initializes it to null. |
Method Summary | |
java.lang.Object |
GetFirstItem()
Moves this ListIter to the ListEntry at the head of the list and gets that ListEntry's item. |
java.lang.Object |
GetItem()
Gets the list-item at the current list location |
java.lang.Object |
GetLastItem()
Moves this ListIter to the last ListEntry in the list and gets that ListEntry's item. |
java.lang.Object |
GetNextItem()
Moves this ListIter to the next ListEntry in the list and gets that ListEntry's item. |
java.lang.Object |
GetPrevItem()
Moves this ListIter to the previous ListEntry in the list and gets that ListEntry's item. |
int |
GetSize()
Gets a count of items in the list. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public LinkList List
public ListEntry Entry
Constructor Detail |
public ListIter(LinkList list)
list
- The LinkList to be accessed.Method Detail |
public int GetSize()
public java.lang.Object GetItem()
public java.lang.Object GetFirstItem()
public java.lang.Object GetNextItem()
public java.lang.Object GetPrevItem()
public java.lang.Object GetLastItem()
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |