net.sourceforge.ganttproject.document
Class DocumentsMRU

java.lang.Object
  |
  +--net.sourceforge.ganttproject.document.DocumentsMRU

public class DocumentsMRU
extends java.lang.Object

List of Documents MRU (most recently used)

Author:
Michael Haeusler (michael at akatose.de)

Constructor Summary
DocumentsMRU(int maxSize)
           
 
Method Summary
 boolean add(Document document)
          Adds a Document at the top of the list of Documents MRU.
 boolean append(Document document)
          Appends a Document to the list of Documents MRU.
 void clear()
          clears the list of Documents MRU
 java.util.Iterator iterator()
          returns an Iterator over the entries of the list of Documents MRU
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentsMRU

public DocumentsMRU(int maxSize)
Method Detail

add

public boolean add(Document document)
Adds a Document at the top of the list of Documents MRU. If the list is already full, an old entry is removed, to make place for this new document.

Parameters:
document - the Document that should be added
Returns:
wether the list has changed through the addition

append

public boolean append(Document document)
Appends a Document to the list of Documents MRU. If the list is already full, the document will not be appended.

Parameters:
document - the Document that should be added
Returns:
wether the list has changed through the addition

clear

public void clear()
clears the list of Documents MRU


iterator

public java.util.Iterator iterator()
returns an Iterator over the entries of the list of Documents MRU



Copyright © 2002 Alexandre THOMAS.