Enum OTAState

  • java.lang.Object
    • java.lang.Enum<OTAState>
      • com.zentri.zentri_ble_ota.OTAState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OTAState>

public enum OTAState
extends java.lang.Enum<OTAState>

Enum Constant Summary

Enum Constant and Description
CHECKING_FOR_UPDATE 
COMPLETE 
ERROR 
INITIALISED 
INITIALISING 
READING_VERSION 
READY 
UP_TO_DATE 
UPDATING 
UPDATING_TRANSITION 
VERSION_READ 

Method Summary

Modifier and Type Method and Description
static OTAState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
static OTAState[] values()
Returns an array containing the constants of this enum type, in the order they are declared.
  • Methods inherited from class java.lang.Enum

    compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
  • Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

Enum Constant Detail

  • INITIALISING

    public static final OTAState INITIALISING
  • INITIALISED

    public static final OTAState INITIALISED
  • READING_VERSION

    public static final OTAState READING_VERSION
  • VERSION_READ

    public static final OTAState VERSION_READ
  • CHECKING_FOR_UPDATE

    public static final OTAState CHECKING_FOR_UPDATE
  • READY

    public static final OTAState READY
  • UPDATING_TRANSITION

    public static final OTAState UPDATING_TRANSITION
  • UPDATING

    public static final OTAState UPDATING
  • UP_TO_DATE

    public static final OTAState UP_TO_DATE
  • COMPLETE

    public static final OTAState COMPLETE
  • ERROR

    public static final OTAState ERROR

Method Detail

  • values

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

    public static OTAState 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