Package io.realm.mongodb.mongo.options
Class CountOptions
- java.lang.Object
-
- io.realm.mongodb.mongo.options.CountOptions
-
public class CountOptions extends Object
The options for a count operation.
-
-
Constructor Summary
Constructors Constructor Description CountOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLimit()
Gets the limit to apply.CountOptions
limit(int limit)
Sets the limit to apply.String
toString()
-
-
-
Method Detail
-
getLimit
public int getLimit()
Gets the limit to apply. The default is 0, which means there is no limit.- Returns:
- the limit
-
limit
public CountOptions limit(int limit)
Sets the limit to apply.- Parameters:
limit
- the limit- Returns:
- this
-
-