From a4b168ad61ed87177bbd9794eeffd65a4971b031 Mon Sep 17 00:00:00 2001 From: William Date: Wed, 17 Aug 2022 12:18:33 +0100 Subject: [PATCH] Fix no builders for page button formats --- build.gradle | 2 +- .../java/net/william278/paginedown/ListOptions.java | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 25fb95e..41ed08a 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { } group 'net.william278' -version '1.0' +version '1.0.1' repositories { mavenCentral() diff --git a/src/main/java/net/william278/paginedown/ListOptions.java b/src/main/java/net/william278/paginedown/ListOptions.java index a706df7..59ca57c 100644 --- a/src/main/java/net/william278/paginedown/ListOptions.java +++ b/src/main/java/net/william278/paginedown/ListOptions.java @@ -138,6 +138,18 @@ public class ListOptions { return this; } + @NotNull + public Builder setPreviousButtonFormat(@NotNull String previousButtonFormat) { + options.previousButtonFormat = previousButtonFormat; + return this; + } + + @NotNull + public Builder setNextButtonFormat(@NotNull String nextButtonFormat) { + options.nextButtonFormat = nextButtonFormat; + return this; + } + @NotNull public ListOptions build() { return options;