![JAR search and dependency download from the Maven repository](/logo.png)
com.despegar.integration.mongo.query.QueryPage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mongo-connector Show documentation
Show all versions of mongo-connector Show documentation
Helper component to connect to mongo fast and easy
package com.despegar.integration.mongo.query;
import java.io.Serializable;
public class QueryPage
implements Serializable {
private static final long serialVersionUID = 1L;
private int offset;
private int limit;
public QueryPage(Integer offset, Integer limit) {
if (offset == null) {
offset = 0;
}
if (limit == null) {
limit = 30;
}
this.offset = offset;
this.limit = limit;
}
public int getOffset() {
return this.offset;
}
public void setOffset(int offset) {
this.offset = offset;
}
public int getLimit() {
return this.limit;
}
public void setLimit(int limit) {
this.limit = limit;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy