From 53d24eab65c09888b42de7a1059ee2d88f95f226 Mon Sep 17 00:00:00 2001 From: zihluwang Date: Thu, 22 Aug 2024 11:48:02 +0800 Subject: [PATCH] feat: added get result after a boolean calculation in BranchUtil --- .../java/com/onixbyte/devkit/utils/BranchUtil.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/devkit-utils/src/main/java/com/onixbyte/devkit/utils/BranchUtil.java b/devkit-utils/src/main/java/com/onixbyte/devkit/utils/BranchUtil.java index 84a3204..c6ad92e 100644 --- a/devkit-utils/src/main/java/com/onixbyte/devkit/utils/BranchUtil.java +++ b/devkit-utils/src/main/java/com/onixbyte/devkit/utils/BranchUtil.java @@ -68,7 +68,7 @@ import java.util.function.Supplier; * * @param the type of the result to be handled by the methods * @author zihluwang - * @version 1.1.0 + * @version 1.6.1 * @see java.util.function.Supplier * @see java.util.function.BooleanSupplier * @see java.lang.Runnable @@ -225,4 +225,13 @@ public final class BranchUtil { */ private final boolean result; + /** + * Get the boolean result. + * + * @return the result + */ + public boolean getResult() { + return result; + } + }