giden.GRDS
Class ListEntry

java.lang.Object
  |
  +--giden.GRDS.ListEntry
All Implemented Interfaces:
java.io.Serializable

public class ListEntry
extends java.lang.Object
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.

ListEntry manages links and list-items for the LinkList (and its derived) classes. The ListEntry class provides memory to store a list-item (any Java Object) and links pointing to the previous and next ListEntry objects in the link list. ListEntry methods provide access to the links and the list-item. Users are discouraged from directly accessing the ListEntry methods. The ListIter, NodeListIter, EdgeListIter, InListIter, OutListIter provide simpler methods for iterating and casting list-items.

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:
DoubleLinkList, EdgeListIter, InListIter, LinkList, ListIter, Network, NodeListIter, OutListIter, SingleLinkList, Serialized Form

Constructor Summary
ListEntry(java.lang.Object item)
          Creates a ListEntry object containing the given list-item
 
Method Summary
 java.lang.Object GetItem()
          Gets the list-item from this ListEntry
 ListEntry GetNext()
          Gets the ListEntry after this ListEntry
 ListEntry GetPrev()
          Gets the ListEntry before this ListEntry
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListEntry

public ListEntry(java.lang.Object item)
Creates a ListEntry object containing the given list-item
Parameters:
item - The object to be stored in this ListEntry
Method Detail

GetNext

public ListEntry GetNext()
Gets the ListEntry after this ListEntry
Returns:
The next ListEntry in the link list.

GetPrev

public ListEntry GetPrev()
Gets the ListEntry before this ListEntry
Returns:
The previous ListEntry in the link list.

GetItem

public java.lang.Object GetItem()
Gets the list-item from this ListEntry
Returns:
The list item stored by this ListEntry.