Class ThingHandlerHelper

java.lang.Object
org.openhab.core.thing.util.ThingHandlerHelper

@NonNullByDefault public class ThingHandlerHelper extends Object
This class provides utility methods related to the ThingHandler class.
Author:
Markus Rathgeb - Initial contribution, Simon Kaufmann - added UNKNOWN
  • Method Details

    • isHandlerInitialized

      public static boolean isHandlerInitialized(ThingStatus thingStatus)
      Checks if the given state indicates that a thing handler has been initialized.
      Returns:
      true if the thing handler has been initialized, otherwise false.
    • isHandlerInitialized

      public static boolean isHandlerInitialized(Thing thing)
      Checks if the thing handler has been initialized.
      Returns:
      true if the thing handler has been initialized, otherwise false.
    • isHandlerInitialized

      public static boolean isHandlerInitialized(ThingHandler handler)
      Checks if the thing handler has been initialized.
      Returns:
      true if the thing handler has been initialized, otherwise false.