getPrevDocument (View - Java™)
Given a document in a view, returns the document immediately preceding it.
Defined in
Syntax
public Document getPrevDocument(Document doc)
throws NotesException
Parameters
Document doc
Any document in the view. Cannot be null.
Return value
Document
The document preceding the parameter. Returns null if there is no preceding document.
Usage
If the view is filtered by FTSearch, this method returns the next document in the filtered view.
The ViewNavigator and ViewEntryCollection classes provide more efficient methods for navigating views and accessing entries.
In loops you should recycle the Document object on each iteration. Use a temporary Document object to save and restore the object.