Package com.ultikits.ultitools.utils
Enum Class PluginInstallUtils.Presence
java.lang.Object
java.lang.Enum<PluginInstallUtils.Presence>
com.ultikits.ultitools.utils.PluginInstallUtils.Presence
- All Implemented Interfaces:
Serializable,Comparable<PluginInstallUtils.Presence>,java.lang.constant.Constable
- Enclosing class:
PluginInstallUtils
What a filesystem probe answered, keeping "unknown" out of "no".
File's predicates return false both when the answer is no and when the
answer could not be obtained -- an ancestor that cannot be searched, a policy that refuses.
Every yes/no question this uninstall asks the filesystem goes through PluginInstallUtils.probe(File)
so the two cannot be confused; the sweep table in the pull request lists them.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIt is definitively not there.It is there, and it is a directory.It is there and is neither -- a link to nowhere, a device, a socket.It is there, and it is a regular file.The question could not be answered. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PluginInstallUtils.PresenceReturns the enum constant of this class with the specified name.static PluginInstallUtils.Presence[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REGULAR_FILE
It is there, and it is a regular file. -
DIRECTORY
It is there, and it is a directory. -
OTHER
It is there and is neither -- a link to nowhere, a device, a socket. -
ABSENT
It is definitively not there. -
UNKNOWN
The question could not be answered.
-
-
Constructor Details
-
Presence
private Presence()
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-