Docs Menu
Docs Home
/ /
Atlas Device SDKs
/ / /

Class CountOptions

On this page

  • io.realm.mongodb.mongo.options
  • Constructors
  • Method Summary
  • Inherited Methods
  • Constructor Detail
  • Method Detail
  • getLimit
  • limit
  • toString
java.lang.Object
io.realm.mongodb.mongo.options.CountOptions

The options for a count operation.

Constructor and Description
Modifier and Type
Method and Description
public int

Gets the limit to apply.

int limit
)

Sets the limit to apply.

public String
  • Methods inherited from class java.lang.Object : getClass , hashCode , equals , clone , toString , notify , notifyAll , wait , wait , wait , finalize

public CountOptions ()

public int getLimit ()

Gets the limit to apply. The default is 0, which means there is no limit.

Returns

the limit

int limit
)

Sets the limit to apply.

Parameters

  • limit - the limit

Returns

this

public String toString ()

Overrides

toString in class Object

Back

io.realm.mongodb.mongo.options