getPrev (ViewNavigator - Java)

Returns the previous entry of the current or specified entry in a view navigator.

Defined in

ViewNavigator

Syntax

public ViewEntry getPrev()
    throws NotesException
public ViewEntry getPrev(ViewEntry entry)
    throws NotesException

Parameters

ViewEntry entry

An entry in the view. Cannot be null.

Return value

ViewEntry

The entry preceding the current or specified entry. Returns null if there is no previous entry.

Usage

This method moves the current pointer to the retrieved entry unless the return value is null.

In loops you should recycle the ViewEntry object on each iteration. Use a temporary object to save and restore the object.

Example