com.h3c.util

## Class PageRequest

- java.lang.Object
- - com.h3c.util.PageRequest

- All Implemented Interfaces:
    Serializable
  Direct Known Subclasses:
    MarkPageRequest

      public class PageRequest
      extends Object
      implements Serializable

  Page request containing the specific page index desired, and the number of objects to be returned per page
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PageRequest(int pageSize)` Creates a request for the first page.
    `PageRequest(int pageIndex, int pageSize)` Creates a page request.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `int` | `getPageIndex()` Gets the page index.
    `int` | `getPageSize()` Gets the page size (maximum number of data items per page).
    `int` | `hashCode()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PageRequest

          public PageRequest(int pageSize)

      Creates a request for the first page.
      Parameters:
        `pageSize` - page size (maximum number of data items per page).

    - #### PageRequest

          public PageRequest(int pageIndex,
                     int pageSize)
                      throws IllegalArgumentException

      Creates a page request.
      Parameters:
        `pageIndex` - page index.
        `pageSize` - page size (maximum number of data items per page).
      Throws:
        `IllegalArgumentException` - if `pageIndex` is less than zero.

  - ### Method Detail

    - #### getPageIndex

          public int getPageIndex()

      Gets the page index.
      Returns:
        the page index.

    - #### getPageSize

          public int getPageSize()

      Gets the page size (maximum number of data items per page).
      Returns:
        the page size.

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object obj)

      Overrides:
        `equals` in class `Object`

Copyright © 2014. All Rights Reserved.