public interface

Page

com.atlassian.jira.util.Page<T>

Class Overview

A single page of values.

Summary

Public Methods
int getSize()
long getStart()
@Nullable Long getTotal()
List<T> getValues()
boolean isLast()

Public Methods

public int getSize ()

Returns
  • the number of results in this 'page' of results.

public long getStart ()

Returns
  • the offset into the overall results set this page starts at (0 based).

@Nullable public Long getTotal ()

Returns
  • the total number of requested entities. This information might not be available, in this case null is returned.

public List<T> getValues ()

Returns
  • a list of the values on this page. Each service returning a page should specify the ordering on the list

public boolean isLast ()

Returns
  • true if this is the last page, i.e. if the page with start = this.getStart + this.getSize would be empty.