Enum Class FileCreationState
- All Implemented Interfaces:
Serializable
,Comparable<FileCreationState>
,Constable
The enum
FileCreationState
provides constants for the file creation state-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis state signals that the file already existsThis state signals that the file was createdThis state signals that the file creation failedThis state signals that the file creation is pending -
Method Summary
Modifier and TypeMethodDescriptiongetFile()
Gets fileSets filestatic FileCreationState
Returns the enum constant of this class with the specified name.static FileCreationState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALREADY_EXISTS
This state signals that the file already exists -
CREATED
This state signals that the file was created -
FAILED
This state signals that the file creation failed -
PENDING
This state signals that the file creation is pending
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getFile
Gets file- Returns:
- the file
-
setFile
Sets file- Parameters:
file
- the file- Returns:
- the file
-