getFirstDocument (DocumentCollection - Java)

Gets the first document in a collection.

Defined in

DocumentCollection

Syntax

public Document getFirstDocument()
    throws NotesException

Return value

Document

The first document in the collection. If there are no documents in the collection, returns null.

Example