Interface InteractiveManager
-
- All Implemented Interfaces:
public interface InteractiveManager<T extends Object>- Since:
2021-12-24
trydofor
-
-
Method Summary
Modifier and Type Method Description abstract BooleanneedAsk(T ask, Boolean yes)Whether to confirm before undoabstract Function<String, Boolean>askWay(Function<String, Boolean> func)How to confirm, pass message, return to continue or stop abstract BiConsumer<String, String>logWay(BiConsumer<String, String> func)How to log the runtime token and message -
-
Method Detail
-
needAsk
abstract Boolean needAsk(T ask, Boolean yes)
Whether to confirm before
undo- Parameters:
ask- ask typeyes- whether to confirm, true by default- Returns:
old value
-
askWay
abstract Function<String, Boolean> askWay(Function<String, Boolean> func)
How to confirm, pass message, return to continue or stop
-
logWay
abstract BiConsumer<String, String> logWay(BiConsumer<String, String> func)
How to log the runtime token and message
-
-
-
-