Enum Transfer.TransferState
- All Implemented Interfaces:
Serializable
,Comparable<Transfer.TransferState>
,java.lang.constant.Constable
- Enclosing interface:
- Transfer
Enumeration of the possible transfer states.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe transfer was canceled and did not complete successfully.The transfer completed successfully.The transfer failed.The transfer is actively uploading or downloading and hasn't finished yet.The transfer is waiting for resources to execute and has not started yet. -
Method Summary
Modifier and TypeMethodDescriptionstatic Transfer.TransferState
Returns the enum constant of this type with the specified name.static Transfer.TransferState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Waiting
The transfer is waiting for resources to execute and has not started yet. -
InProgress
The transfer is actively uploading or downloading and hasn't finished yet. -
Completed
The transfer completed successfully. -
Canceled
The transfer was canceled and did not complete successfully. -
Failed
The transfer failed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-