java.lang.Object
java.lang.Enum<FileCreationState>
io.github.astrapi69.file.create.model.FileCreationState
All Implemented Interfaces:
Serializable, Comparable<FileCreationState>, Constable

public enum FileCreationState extends Enum<FileCreationState>
The enum FileCreationState provides constants for the file creation state
  • Enum Constant Details

    • ALREADY_EXISTS

      public static final FileCreationState ALREADY_EXISTS
      This state signals that the file already exists
    • CREATED

      public static final FileCreationState CREATED
      This state signals that the file was created
    • FAILED

      public static final FileCreationState FAILED
      This state signals that the file creation failed
    • PENDING

      public static final FileCreationState PENDING
      This state signals that the file creation is pending
  • Method Details

    • values

      public static FileCreationState[] 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

      public static FileCreationState valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getFile

      public File getFile()
      Gets file
      Returns:
      the file
    • setFile

      public FileCreationState setFile(File file)
      Sets file
      Parameters:
      file - the file
      Returns:
      the file