Skip to content

Commit 53d24ea

Browse files
author
zihluwang
committed
feat: added get result after a boolean calculation in BranchUtil
1 parent 2b10eed commit 53d24ea

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

devkit-utils/src/main/java/com/onixbyte/devkit/utils/BranchUtil.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
*
6969
* @param <T> the type of the result to be handled by the methods
7070
* @author zihluwang
71-
* @version 1.1.0
71+
* @version 1.6.1
7272
* @see java.util.function.Supplier
7373
* @see java.util.function.BooleanSupplier
7474
* @see java.lang.Runnable
@@ -225,4 +225,13 @@ public void handle(Runnable ifHandler) {
225225
*/
226226
private final boolean result;
227227

228+
/**
229+
* Get the boolean result.
230+
*
231+
* @return the result
232+
*/
233+
public boolean getResult() {
234+
return result;
235+
}
236+
228237
}

0 commit comments

Comments
 (0)