Package snaq.util.jclap
Enum FileOption.FileFilter.AcceptFileType
- java.lang.Object
-
- java.lang.Enum<FileOption.FileFilter.AcceptFileType>
-
- snaq.util.jclap.FileOption.FileFilter.AcceptFileType
-
- All Implemented Interfaces:
Serializable,Comparable<FileOption.FileFilter.AcceptFileType>
- Enclosing class:
- FileOption.FileFilter
public static enum FileOption.FileFilter.AcceptFileType extends Enum<FileOption.FileFilter.AcceptFileType>
Enumeration of possible types to accept.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPT_ALLUse to accept only files or directories.ACCEPT_DIRUse to accept only directories (not files).ACCEPT_FILEUse to accept only files (not directories).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FileOption.FileFilter.AcceptFileTypevalueOf(String name)Returns the enum constant of this type with the specified name.static FileOption.FileFilter.AcceptFileType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCEPT_FILE
public static final FileOption.FileFilter.AcceptFileType ACCEPT_FILE
Use to accept only files (not directories).
-
ACCEPT_DIR
public static final FileOption.FileFilter.AcceptFileType ACCEPT_DIR
Use to accept only directories (not files).
-
ACCEPT_ALL
public static final FileOption.FileFilter.AcceptFileType ACCEPT_ALL
Use to accept only files or directories.
-
-
Method Detail
-
values
public static FileOption.FileFilter.AcceptFileType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FileOption.FileFilter.AcceptFileType c : FileOption.FileFilter.AcceptFileType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileOption.FileFilter.AcceptFileType valueOf(String name)
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
-
-