Serializable, Comparable<DecodeEvent>public enum DecodeEvent extends Enum<DecodeEvent>
SystemCapability.Multimedia#IMAGE| 枚举常量 | 说明 |
|---|---|
EVENT_COMPLETE_DECODE |
Indicates that decoding is complete.
|
EVENT_HEADER_DECODE |
Indicates that the file header has been decoded.
|
EVENT_LAST |
Indicates the end of the event list.
|
EVENT_PARTIAL_DECODE |
Indicates that partial decoding is complete.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static DecodeEvent |
getDecodeEvent(int val) |
Creates a
DecodeEvent instance based on the passed enum value. |
int |
getValue() |
Obtains the value of this enum.
|
static DecodeEvent |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static DecodeEvent[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (DecodeEvent c : DecodeEvent.values()) System.out.println(c); |
public static final DecodeEvent EVENT_COMPLETE_DECODE
public static final DecodeEvent EVENT_PARTIAL_DECODE
public static final DecodeEvent EVENT_HEADER_DECODE
public static final DecodeEvent EVENT_LAST
public static DecodeEvent[] values()
for (DecodeEvent c : DecodeEvent.values()) System.out.println(c);
public static DecodeEvent valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static DecodeEvent getDecodeEvent(int val)
DecodeEvent instance based on the passed enum value.val - Indicates the enum value of the event.DecodeEvent.public int getValue()