Enum DeviceState

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<DeviceState>

    public enum DeviceState
    extends java.lang.Enum<DeviceState>
    • Enum Constant Detail

      • STARTING_TO_LISTEN

        public static final DeviceState STARTING_TO_LISTEN
      • SCANNING_FOR_CHANNELS

        public static final DeviceState SCANNING_FOR_CHANNELS
      • CONNECTING

        public static final DeviceState CONNECTING
      • WAITING_FOR_CONNECTION_RETRY

        public static final DeviceState WAITING_FOR_CONNECTION_RETRY
      • DISCONNECTING

        public static final DeviceState DISCONNECTING
      • DRIVER_UNAVAILABLE

        public static final DeviceState DRIVER_UNAVAILABLE
    • Method Detail

      • values

        public static DeviceState[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DeviceState c : DeviceState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DeviceState valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null