Skip to content

add missing long pageOffset() getter - #1535

Merged
otaviojava merged 4 commits into
jakartaee:mainfrom
gavinking:missing-pageOffset
Aug 21, 2026
Merged

add missing long pageOffset() getter#1535
otaviojava merged 4 commits into
jakartaee:mainfrom
gavinking:missing-pageOffset

Conversation

@gavinking

Copy link
Copy Markdown
Member

We are missing a getter for the page offset.

@njr-11 njr-11 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually left this out intentionally, thinking that it would only be needed by the Data provider, and the Data provider can easily subtract one from the pageNumber(). If we expect this to be helpful for users as well, here are a few review comments,

Comment thread api/src/main/java/jakarta/data/page/PageRequest.java Outdated
Comment thread api/src/main/java/jakarta/data/page/PageRequest.java
@gavinking

Copy link
Copy Markdown
Member Author

If we expect this to be helpful for users as well

I think it's certainly useful to clients. It's also more symmetric.

@gavinking

Copy link
Copy Markdown
Member Author

@njr-11 fixed those two things

@otaviojava
otaviojava merged commit ab51307 into jakartaee:main Aug 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants