Skip to content

Commit

Permalink
feat: add page validation when element is left
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <[email protected]>
  • Loading branch information
otaviojava committed Aug 30, 2024
1 parent 7f65ed1 commit 931e258
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public int numberOfElements() {

@Override
public boolean hasNext() {
return hasContent();
return hasContent() && this.entities.size() == this.pageRequest.size();
}

@Override
Expand Down

0 comments on commit 931e258

Please sign in to comment.