All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.api.model.PageInfo Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
package com.groupbyinc.api.model;

/**
 * 
 * Holds information about this page of data.
 * 
 */
public class PageInfo {

  private int recordStart;
  private int recordEnd;

  /**
   * @return The record offset for this search and navigation state.
   */
  public int getRecordStart() {
    return recordStart;
  }

  /**
   * @param recordStart
   *         Set the record offset.
   *
   * @return
   */
  public com.groupbyinc.api.model.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 com.groupbyinc.api.model.PageInfo setRecordEnd(int recordEnd) {
    this.recordEnd = recordEnd;
    return this;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy