Package com.github.twitch4j.common.util
Class EventManagerUtils
java.lang.Object
com.github.twitch4j.common.util.EventManagerUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.github.philippheuer.events4j.core.EventManager
initializeEventManager
(@NotNull Class<?> defaultEventHandler) Initializes a new EventManager instance.static void
validateEventManager
(@NotNull com.github.philippheuer.events4j.core.EventManager eventManager) Checks if the provided EventManager is usable by Twitch4Jstatic com.github.philippheuer.events4j.core.EventManager
validateOrInitializeEventManager
(@Nullable com.github.philippheuer.events4j.core.EventManager eventManager, @NotNull Class<?> defaultEventHandler) Validates the provided EventManager or initializes a new one
-
Constructor Details
-
EventManagerUtils
public EventManagerUtils()
-
-
Method Details
-
validateOrInitializeEventManager
public static com.github.philippheuer.events4j.core.EventManager validateOrInitializeEventManager(@Nullable @Nullable com.github.philippheuer.events4j.core.EventManager eventManager, @NotNull @NotNull Class<?> defaultEventHandler) Validates the provided EventManager or initializes a new one- Parameters:
eventManager
- EventManagerdefaultEventHandler
- The default eventHandler class- Returns:
- EventManager
-
initializeEventManager
public static com.github.philippheuer.events4j.core.EventManager initializeEventManager(@NotNull @NotNull Class<?> defaultEventHandler) Initializes a new EventManager instance.- Parameters:
defaultEventHandler
- The default eventHandler class- Returns:
- EventManager
-
validateEventManager
public static void validateEventManager(@NotNull @NotNull com.github.philippheuer.events4j.core.EventManager eventManager) Checks if the provided EventManager is usable by Twitch4J- Parameters:
eventManager
- The eventManager instance
-