public static enum Download.Status extends java.lang.Enum<Download.Status>
| 枚举常量和说明 |
|---|
CANCELED
已取消
|
DONE
成功下载完成
|
DOWNLOADING
下载中
|
ERROR
发送错误
|
PAUSED
已暂停
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
value() |
static Download.Status |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static Download.Status[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Download.Status CANCELED
public static final Download.Status DOWNLOADING
public static final Download.Status PAUSED
public static final Download.Status DONE
public static final Download.Status ERROR
public static Download.Status[] values()
for (Download.Status c : Download.Status.values()) System.out.println(c);
public static Download.Status valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public int value()
Copyright © 2021 江苏一键联信息科技有限公司. All Rights Reserved.