Package io.github.mrtesz.teszcore.logged
Class Runner
java.lang.Object
io.github.mrtesz.teszcore.logged.Runner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Copy the executing classstatic voidexecuteRunnable(@NotNull Runnable runnable) static voidexecuteRunnable(@NotNull Runnable runnable, @Nullable String extraInfo) static voidexecuteRunnable(@NotNull Runnable runnable, @Nullable String extraInfo, @Nullable String usingProject) Execute aRunnablewith wrapping loggingstatic voidexecuteRunnable(@NotNull Runnable runnable, @Nullable String extraInfo, @Nullable String usingProject, @NotNull TeszCoreLogger logger) Execute aRunnablewith wrapping loggingstatic <T> TexecuteSupply(@NotNull Supplier<T> supplier) static <T> TexecuteSupply(@NotNull Supplier<T> supplier, @Nullable String extraInfo) static <T> TexecuteSupply(@NotNull Supplier<T> supplier, @Nullable String extraInfo, @Nullable String usingProject) Execute aSupplierwith wrapping loggingstatic <T> TexecuteSupply(@NotNull Supplier<T> supplier, @Nullable String extraInfo, @Nullable String usingProject, @NotNull TeszCoreLogger logger) Execute aSupplierwith wrapping logging<T> T<T> TReferencingexecuteSupply(Supplier, String, String, TeszCoreLogger)with usingProject and logger being the params provided on constructvoidReferencingrun(Runnable, String)with `extraInfo` being `null`voidReferencingexecuteRunnable(Runnable, String, String)with `usingProject` being the `String` provided on construct
-
Constructor Details
-
Runner
-
-
Method Details
-
get
ReferencingexecuteSupply(Supplier, String, String, TeszCoreLogger)with usingProject and logger being the params provided on construct -
get
-
run
ReferencingexecuteRunnable(Runnable, String, String)with `usingProject` being the `String` provided on construct -
run
Referencingrun(Runnable, String)with `extraInfo` being `null` -
executeSupply
public static <T> T executeSupply(@NotNull @NotNull Supplier<T> supplier, @Nullable @Nullable String extraInfo, @Nullable @Nullable String usingProject, @NotNull @NotNull TeszCoreLogger logger) Execute aSupplierwith wrapping logging- Parameters:
supplier- Supplier to executeextraInfo- Optional: Extra infos to display in the loggingusingProject- Optional: Project using the methodlogger- Logger- Returns:
- the return value of provided supplier
-
executeSupply
public static <T> T executeSupply(@NotNull @NotNull Supplier<T> supplier, @Nullable @Nullable String extraInfo, @Nullable @Nullable String usingProject) Execute aSupplierwith wrapping logging- Parameters:
supplier- Supplier to executeextraInfo- Optional: Extra infos to display in the loggingusingProject- Optional: Project using the method- Returns:
- the return value of provided supplier
-
executeSupply
-
executeSupply
-
executeRunnable
public static void executeRunnable(@NotNull @NotNull Runnable runnable, @Nullable @Nullable String extraInfo, @Nullable @Nullable String usingProject, @NotNull @NotNull TeszCoreLogger logger) Execute aRunnablewith wrapping logging- Parameters:
runnable- Runnable to executeextraInfo- Optional: Extra infos to display in the loggingusingProject- Optional: Project using the methodlogger- Logger
-
executeRunnable
public static void executeRunnable(@NotNull @NotNull Runnable runnable, @Nullable @Nullable String extraInfo, @Nullable @Nullable String usingProject) Execute aRunnablewith wrapping logging- Parameters:
runnable- Runnable to executeextraInfo- Optional: Extra infos to display in the loggingusingProject- Optional: Project using the method
-
executeRunnable
-
executeRunnable
-
copy
-