Enum BatteryInfoType

  • All Implemented Interfaces:
    android.os.Parcelable, java.io.Serializable, java.lang.Comparable<BatteryInfoType>

    public enum BatteryInfoType
    extends java.lang.Enum<BatteryInfoType>
    implements android.os.Parcelable
    Define supported battery information
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface android.os.Parcelable

        android.os.Parcelable.ClassLoaderCreator<T extends java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static android.os.Parcelable.Creator<BatteryInfoType> CREATOR  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int describeContents()  
      int getValue()  
      static BatteryInfoType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static BatteryInfoType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      void writeToParcel​(android.os.Parcel dest, int flags)  
      • 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

      • SOH_DATA

        public static final BatteryInfoType SOH_DATA
        State of Health(SOH)
      • DC_UAH_DATA

        public static final BatteryInfoType DC_UAH_DATA
        Battery Design Capacity
      • CYCLE_COUNT_DATA

        public static final BatteryInfoType CYCLE_COUNT_DATA
        Battery Charge Cycle
      • PART_NUMBER_DATA

        public static final BatteryInfoType PART_NUMBER_DATA
        Battery Part Number
      • SERIAL_NUMBER_DATA

        public static final BatteryInfoType SERIAL_NUMBER_DATA
        Battery Serial Number
      • MANUFACTURE_DATE_DATA

        public static final BatteryInfoType MANUFACTURE_DATE_DATA
        Battery Manufacture Date
      • HISTORY_TMAX_DATA

        public static final BatteryInfoType HISTORY_TMAX_DATA
        Historical Max Temperature
      • HISTORY_TMIN_DATA

        public static final BatteryInfoType HISTORY_TMIN_DATA
        Historical Min Temperature
      • HISTORY_VMAX_DATA

        public static final BatteryInfoType HISTORY_VMAX_DATA
        Historical Max Voltage
      • HISTORY_VMIN_DATA

        public static final BatteryInfoType HISTORY_VMIN_DATA
        Historical Min Voltage
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<BatteryInfoType> CREATOR
    • Method Detail

      • values

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

        public static BatteryInfoType 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
      • describeContents

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable
      • writeToParcel

        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable
      • getValue

        public int getValue()