@@ -137,14 +137,14 @@ public static BranchUtil and(BooleanSupplier... valueSuppliers) {
137137 * on the result.
138138 * <p>
139139 * If the result is {@code true}, the {@code trueHandler} is executed. If the result is
140- * {@code false} and an {@code elseHandler } is provided, it is executed.
140+ * {@code false} and an {@code falseSupplier } is provided, it is executed.
141141 * <p>
142142 * Returns the result of the executed handler.
143143 *
144144 * @param <T> the type of the result to be handled by the methods
145145 * @param trueHandler the handler to be executed if the result is {@code true}
146146 * @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 elseHandler } is
147+ * @return the result of the executed handler, or {@code null} if no {@code falseSupplier } is
148148 * provided and the result of the evaluation is {@code false}
149149 */
150150 public <T > T thenSupply (Supplier <T > trueHandler , Supplier <T > falseSupplier ) {
@@ -167,8 +167,7 @@ public <T> T thenSupply(Supplier<T> trueHandler, Supplier<T> falseSupplier) {
167167 *
168168 * @param <T> the type of the result to be handled by the methods
169169 * @param trueSupplier the handler to be executed if the result is {@code true}
170- * @return the result of the executed handler, or {@code null} if result of evaluation is
171- * {@code false}
170+ * @return the result of the executed handler, or {@code null} if result of evaluation is {@code false}
172171 */
173172 public <T > T thenSupply (Supplier <T > trueSupplier ) {
174173 return thenSupply (trueSupplier , null );
@@ -207,4 +206,18 @@ public void then(Runnable trueHandler) {
207206 then (trueHandler , null );
208207 }
209208
209+ /**
210+ * Get the boolean result.
211+ * <p>
212+ * <b>Note:</b> {@link BranchUtil} is not responsible for getting a raw boolean result, consider use
213+ * {@link BoolUtil} to replace.
214+ *
215+ * @see BoolUtil
216+ * @return the result
217+ */
218+ @ Deprecated (forRemoval = true )
219+ public boolean getResult () {
220+ return result ;
221+ }
222+
210223}
0 commit comments