public enum PauseStatus extends Enum<PauseStatus>
枚举常量和说明 |
---|
CANCELLED
pause is not possible while transfer is already in progress AND cancel
was requested; so we cancel it
|
CANCELLED_BEFORE_START
pause is not yet applicable since transfer has not started AND cancel was
requested; so we cancel it
|
NO_EFFECT
pause is not possible while transfer is already in progress; so no action
taken
|
NOT_STARTED
pause is not yet applicable since transfer has not started; so no action
taken
|
SUCCESS
transfer successfully paused (and therefore the return information can be
used to resume the transfer later on)
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
isCancelled()
Returns true if the transfer is cancelled else false.
|
boolean |
isPaused()
Returns true if the transfer is paused else false.
|
boolean |
unchanged()
Returns true if the transfer is not started or the pause operation has no
effect on the transfer.
|
static PauseStatus |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static PauseStatus[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final PauseStatus SUCCESS
public static final PauseStatus NOT_STARTED
public static final PauseStatus CANCELLED_BEFORE_START
public static final PauseStatus NO_EFFECT
public static final PauseStatus CANCELLED
public static PauseStatus[] values()
for (PauseStatus c : PauseStatus.values()) System.out.println(c);
public static PauseStatus valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值public boolean isPaused()
public boolean isCancelled()
public boolean unchanged()
Copyright © 2020. All rights reserved.