Enum FirmwareUpdateState

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

    public enum FirmwareUpdateState
    extends java.lang.Enum<FirmwareUpdateState>
    States of the firmware update.
    Version:
    1.0.0
    Author:
    wmy
    • Enum Constant Detail

      • UPDATE_STATE_COMPLETED

        public static final FirmwareUpdateState UPDATE_STATE_COMPLETED
        Update Completed or Not Started.
      • UPDATE_STATE_DOWNLOADING

        public static final FirmwareUpdateState UPDATE_STATE_DOWNLOADING
        Downloading firmware files.
      • UPDATE_STATE_CHECKING_MODULE

        public static final FirmwareUpdateState UPDATE_STATE_CHECKING_MODULE
        Checking the module where firmware will be updated.
      • UPDATE_STATE_UPDATING

        public static final FirmwareUpdateState UPDATE_STATE_UPDATING
        Updating firmware.
    • Method Detail

      • values

        public static FirmwareUpdateState[] 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 (FirmwareUpdateState c : FirmwareUpdateState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FirmwareUpdateState 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
      • convert

        public static FirmwareUpdateState convert​(int state)
        convert and return the corresponding enumeration value according to the given sequence number
        Parameters:
        state - the given sequence number
        Returns:
        corresponding enumeration value