Package snaq.util.jclap
Enum FileOption.FileFilter.AcceptExistance
java.lang.Object
java.lang.Enum<FileOption.FileFilter.AcceptExistance>
snaq.util.jclap.FileOption.FileFilter.AcceptExistance
- All Implemented Interfaces:
Serializable,Comparable<FileOption.FileFilter.AcceptExistance>,java.lang.constant.Constable
- Enclosing class:
- FileOption.FileFilter
public static enum FileOption.FileFilter.AcceptExistance extends Enum<FileOption.FileFilter.AcceptExistance>
Enumeration of possible file existence states to accept.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPT_ALLUse to accept existing or non-existing files.ACCEPT_EXISTINGUse to accept only existing files.ACCEPT_NON_EXISTINGUse to accept only non-existing files. -
Method Summary
Modifier and Type Method Description static FileOption.FileFilter.AcceptExistancevalueOf(String name)Returns the enum constant of this type with the specified name.static FileOption.FileFilter.AcceptExistance[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ACCEPT_EXISTING
Use to accept only existing files. -
ACCEPT_NON_EXISTING
Use to accept only non-existing files. -
ACCEPT_ALL
Use to accept existing or non-existing files.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
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
-