Enum Class DittoFileSystemType

java.lang.Object
java.lang.Enum<DittoFileSystemType>
com.ditto.java.DittoFileSystemType
All Implemented Interfaces:
Serializable, Comparable<DittoFileSystemType>, Constable

public enum DittoFileSystemType extends Enum<DittoFileSystemType>

Represents the type of file system item in a DittoDiskUsageItem.

This enum identifies whether an item in Ditto's working directory is a regular file, a directory, or a symbolic link.

  • Enum Constant Details

    • DIRECTORY

      public static final DittoFileSystemType DIRECTORY
      A directory that can contain other files and directories.
    • FILE

      public static final DittoFileSystemType FILE
      A regular file containing data.
  • Method Details

    • values

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