From 32a3255a52da9cd91e4521be419dbd3b1a4b736b Mon Sep 17 00:00:00 2001 From: ANutley Date: Thu, 15 Aug 2024 23:31:23 +0100 Subject: [PATCH] feat: allow you to see all pages in a paginator --- .../me/anutley/jdautils/menus/paginator/Paginator.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/menus/src/main/java/me/anutley/jdautils/menus/paginator/Paginator.java b/menus/src/main/java/me/anutley/jdautils/menus/paginator/Paginator.java index 8c32a38..d4f8b51 100644 --- a/menus/src/main/java/me/anutley/jdautils/menus/paginator/Paginator.java +++ b/menus/src/main/java/me/anutley/jdautils/menus/paginator/Paginator.java @@ -108,6 +108,13 @@ public boolean isEnd() { return index == pages.size() - 1; } + /** + * @return The list of pages in the paginator + */ + public List getPages() { + return pages; + } + /** * A common builder for paginators