Class EventManagerUtils

java.lang.Object
com.github.twitch4j.common.util.EventManagerUtils

public class EventManagerUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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 Twitch4J
    static 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 - EventManager
      defaultEventHandler - 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