.. java:import:: java.util ArrayList .. java:import:: java.util List EmailRecords ============ .. java:package:: org.motechproject.email.domain :noindex: .. java:type:: public class EmailRecords The \ ``EmailRecords``\ class wraps the \ :java:ref:`EmailRecord`\ list and stores the current item count. Constructors ------------ EmailRecords ^^^^^^^^^^^^ .. java:constructor:: public EmailRecords() :outertype: EmailRecords Creates a new instance of \ ``EmailRecords``\ , which contains no records. EmailRecords ^^^^^^^^^^^^ .. java:constructor:: public EmailRecords(Integer totalRecords, Integer page, Integer totalPages, List allRecords) :outertype: EmailRecords Creates a new instance of \ ``EmailRecords``\ , with all fields set to the values specified in the parameters. The \ ``page``\ and \ ``totalPages``\ parameters are for the purposes of paginating the list of records in the UI. :param totalRecords: the total number of records :param page: the current page :param totalPages: the total number of pages :param allRecords: the list of records Methods ------- getPage ^^^^^^^ .. java:method:: public Integer getPage() :outertype: EmailRecords Gets the current page. :return: the current page getRecords ^^^^^^^^^^ .. java:method:: public Integer getRecords() :outertype: EmailRecords Gets the total number of records. :return: the total number of records getRows ^^^^^^^ .. java:method:: public List getRows() :outertype: EmailRecords Gets the list of records. :return: the list of records getTotal ^^^^^^^^ .. java:method:: public Integer getTotal() :outertype: EmailRecords Gets the total number of pages. :return: the total number of pages setRows ^^^^^^^ .. java:method:: public void setRows(List rows) :outertype: EmailRecords Sets the list of records. :param rows: the list of records setTotal ^^^^^^^^ .. java:method:: public void setTotal(Integer total) :outertype: EmailRecords Sets the total number of records. :param total: the total number of records toString ^^^^^^^^ .. java:method:: @Override public String toString() :outertype: EmailRecords Returns a string representation of this \ ``EmailRecords``\ object. :return: a string representation of this \ ``EmailRecords``\ object