getLastDocument (View - Java)

Returns the last document in a view.

Defined in

View

Syntax

public Document getLastDocument()
    throws NotesException

Return value

Document

The last document in the view. Returns null if there are no documents in the view.

Usage

If the view is filtered by FTSearch, this method returns the last document in the filtered view.

The ViewNavigator and ViewEntryCollection classes provide more efficient methods for navigating views and accessing entries.

Example