PageDirection
Stay organized with collections
Save and categorize content based on your preferences.
Direction constants for pagination over data sets.
Constant Summary
int |
NEXT
|
Direction advancing toward the end of the data
set. |
int |
NONE
|
Constant indicating that no pagination is
occurring. |
int |
PREV
|
Direction advancing toward the beginning of the
data set. |
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Constants
public static final int
NEXT
Direction advancing toward the end of the data set.
Constant Value: 0
public static final int
NONE
Constant indicating that no pagination is occurring.
Constant Value: -1
public static final int
PREV
Direction advancing toward the beginning of the data set.
Constant Value: 1
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-10 UTC."],[[["\u003cp\u003e\u003ccode\u003ePageDirection\u003c/code\u003e provides direction constants for paginating through data sets.\u003c/p\u003e\n"],["\u003cp\u003eThree constants are available: \u003ccode\u003eNEXT\u003c/code\u003e, \u003ccode\u003ePREV\u003c/code\u003e, and \u003ccode\u003eNONE\u003c/code\u003e for navigating through or indicating no pagination.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eNEXT\u003c/code\u003e advances towards the end, \u003ccode\u003ePREV\u003c/code\u003e towards the beginning, and \u003ccode\u003eNONE\u003c/code\u003e signifies no pagination.\u003c/p\u003e\n"],["\u003cp\u003eThis class helps control the direction of movement when working with paginated data in applications.\u003c/p\u003e\n"]]],["`PageDirection` provides constants for navigating data sets. Key actions include moving towards the end of a dataset using `NEXT` (value 0), indicating no movement with `NONE` (value -1), or moving towards the beginning of the dataset with `PREV` (value 1). A nested interface `Direction` defines these same constants for pagination. It also inherits methods from the `Object` class for core object operations.\n"],null,[]]