Contents
Enum FileType
- All Implemented Interfaces:
Serializable
,Comparable<FileType>
An enumerated type that represents a file's type.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA regular file.A file or folder.A folder.A file that does not exist. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the name of this type.boolean
Returns true if files of this type may have attributes.boolean
Returns true if files of this type may contain other files.boolean
Returns true if files of this type may have data content.toString()
Returns the name of this type.static FileType
Returns the enum constant of this type with the specified name.static FileType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Method Details
-
values
-
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
-
getName
-
hasAttributes
Returns true if files of this type may have attributes.- Returns:
- true if files can have attributes
-
hasChildren
Returns true if files of this type may contain other files.- Returns:
- true if files can contain other files.
-
hasContent
Returns true if files of this type may have data content.- Returns:
- true if files can have content.
-
toString
-