Package com.install4j.api.windows
Enum Class DriveType
- All Implemented Interfaces:
Serializable
,Comparable<DriveType>
,Constable
Enumeration class for the different drive types a file can be located on.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DriveType
getFromIntValue
(int value) Convert int value to constant.int
Convert to an int value.toString()
static DriveType
Returns the enum constant of this class with the specified name.static DriveType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
The drive type could not be determined. -
REMOVABLE
A removable drive. -
FIXED
A fixed (local) drive. -
REMOTE
A remote (network) drive. -
CDROM
A CD-ROM. -
RAMDISK
A ram disk.
-
-
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
-
getFromIntValue
Convert int value to constant.- Parameters:
value
- the int value- Returns:
- the constant
-
getIntValue
public int getIntValue()Convert to an int value.- Returns:
- the int value
-
toString
-