
com.groupbyinc.api.model.PageInfo Maven / Gradle / Ivy
package com.groupbyinc.api.model;
/**
*
* Holds information about this page of data.
*
*
* @author will
*/
public class PageInfo {
private int recordStart;
private int recordEnd;
/**
*
* Default constructor
*
*/
public PageInfo() {
// default constructor
}
/**
* @return The record offset for this search and navigation state.
*/
public int getRecordStart() {
return recordStart;
}
/**
* @param recordStart
* Set the record offset.
*
* @return
*/
public PageInfo setRecordStart(int recordStart) {
this.recordStart = recordStart;
return this;
}
/**
* @return The index of the last record in this page of results.
*/
public int getRecordEnd() {
return recordEnd;
}
/**
* @param recordEnd
* Set the last record index.
*
* @return
*/
public PageInfo setRecordEnd(int recordEnd) {
this.recordEnd = recordEnd;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy