Enum Class ArchiveFile.FileType

java.lang.Object
java.lang.Enum<ArchiveFile.FileType>
org.ctan.site.domain.archive.ArchiveFile.FileType
All Implemented Interfaces:
Serializable, Comparable<ArchiveFile.FileType>, Constable
Enclosing class:
ArchiveFile

public static enum ArchiveFile.FileType extends Enum<ArchiveFile.FileType>
This enumeration lists known file types.
  • Enum Constant Details

    • UNKNOWN

      public static final ArchiveFile.FileType UNKNOWN
      The field UNKNOWN contains the indicates an unknown file type.
    • FILE

      public static final ArchiveFile.FileType FILE
      The field FILE contains the indicates a plain file.
    • DIRECTORY

      public static final ArchiveFile.FileType DIRECTORY
      The field DIRECTORY contains the indicator for a directory.
    • ARCHIVE

      public static final ArchiveFile.FileType ARCHIVE
      The field ARCHIVE contains the indicator for an archive.
    • GENERATED

      public static final ArchiveFile.FileType GENERATED
      The field GENERATED contains the indicator for a generated file.
  • Method Details

    • values

      public static ArchiveFile.FileType[] 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 ArchiveFile.FileType 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