All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class mootcan.HistoryList

java.lang.Object
   |
   +----mootcan.HistoryList

public class HistoryList
extends Object
a doubly linked list containing history elements. any object type can be inserted into the history list

Author:
Sindre Sørensen

Variable Index

 o current
 o defaultElement
 o earliest
 o latest
 o maxSize
 o size

Constructor Index

 o HistoryList(Object, int)

Method Index

 o appendEmptyItem()
 o getCurrentItem()
 o getNextItem()
 o getPreviousItem()
 o insertItem(Object)
 o removeEarliestItem()
 o replaceCurrentItem(Object)

Variables

 o size
 int size
 o maxSize
 int maxSize
 o latest
 HistoryNode latest
 o earliest
 HistoryNode earliest
 o current
 HistoryNode current
 o defaultElement
 Object defaultElement

Constructors

 o HistoryList
 HistoryList(Object defaultItem,
             int maximumSize)
Parameters:
defaultItem - the (empty, if one wishes) object that will be returned when you have travelled beyond the latest point in history
maximumSize - the maximum size the history list will become before removing the earliest items

Methods

 o getCurrentItem
 public Object getCurrentItem()
 o getNextItem
 public Object getNextItem()
 o replaceCurrentItem
 public void replaceCurrentItem(Object o)
 o getPreviousItem
 public Object getPreviousItem()
 o insertItem
 public void insertItem(Object o)
 o appendEmptyItem
 public HistoryNode appendEmptyItem()
 o removeEarliestItem
 void removeEarliestItem()

All Packages  Class Hierarchy  This Package  Previous  Next  Index