Skip to content

Commit 7abb695

Browse files
committed
docs: optimised docs
1 parent 48714e5 commit 7abb695

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -136,20 +136,20 @@ public static BranchUtil and(BooleanSupplier... valueSuppliers) {
136136
* Handles the result of the boolean expressions by executing the appropriate handler based
137137
* on the result.
138138
* <p>
139-
* If the result is {@code true}, the {@code trueHandler} is executed. If the result is
139+
* If the result is {@code true}, the {@code trueSupplier} is executed. If the result is
140140
* {@code false} and an {@code falseSupplier} is provided, it is executed.
141141
* <p>
142-
* Returns the result of the executed handler.
142+
* Returns the result of the executed supplier.
143143
*
144144
* @param <T> the type of the result to be handled by the methods
145-
* @param trueHandler the handler to be executed if the result is {@code true}
146-
* @param falseSupplier the handler to be executed if the result is {@code false} (optional)
147-
* @return the result of the executed handler, or {@code null} if no {@code falseSupplier} is
145+
* @param trueSupplier the supplier to be executed if the result is {@code true}
146+
* @param falseSupplier the supplier to be executed if the result is {@code false} (optional)
147+
* @return the result of the executed supplier, or {@code null} if no {@code falseSupplier} is
148148
* provided and the result of the evaluation is {@code false}
149149
*/
150-
public <T> T thenSupply(Supplier<T> trueHandler, Supplier<T> falseSupplier) {
151-
if (this.result && Objects.nonNull(trueHandler)) {
152-
return trueHandler.get();
150+
public <T> T thenSupply(Supplier<T> trueSupplier, Supplier<T> falseSupplier) {
151+
if (this.result && Objects.nonNull(trueSupplier)) {
152+
return trueSupplier.get();
153153
}
154154

155155
if (Objects.isNull(falseSupplier)) {
@@ -166,7 +166,7 @@ public <T> T thenSupply(Supplier<T> trueHandler, Supplier<T> falseSupplier) {
166166
* Returns the result of the executed handler.
167167
*
168168
* @param <T> the type of the result to be handled by the methods
169-
* @param trueSupplier the handler to be executed if the result is {@code true}
169+
* @param trueSupplier the supplier to be executed if the result is {@code true}
170170
* @return the result of the executed handler, or {@code null} if result of evaluation is {@code false}
171171
*/
172172
public <T> T thenSupply(Supplier<T> trueSupplier) {
@@ -180,7 +180,7 @@ public <T> T thenSupply(Supplier<T> trueSupplier) {
180180
* If the result is {@code true}, the {@code ifHandler} is executed. If the result is
181181
* {@code false} and an {@code elseHandler} is provided, it is executed.
182182
*
183-
* @param trueHandler the handler to be executed if the result is {@code true}
183+
* @param trueHandler the handler to be executed if the result is {@code true}
184184
* @param falseHandler the handler to be executed if the result is {@code false} (optional)
185185
*/
186186
public void then(Runnable trueHandler, Runnable falseHandler) {
@@ -212,8 +212,8 @@ public void then(Runnable trueHandler) {
212212
* <b>Note:</b> {@link BranchUtil} is not responsible for getting a raw boolean result, consider use
213213
* {@link BoolUtil} to replace.
214214
*
215-
* @see BoolUtil
216215
* @return the result
216+
* @see BoolUtil
217217
*/
218218
@Deprecated(forRemoval = true)
219219
public boolean getResult() {

0 commit comments

Comments
 (0)