Package com.install4j.api.windows
Enum DriveType
- java.lang.Object
-
- java.lang.Enum<DriveType>
-
- com.install4j.api.windows.DriveType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DriveType
getFromIntValue(int value)
Convert int value to constant.int
getIntValue()
Convert to an int value.java.lang.String
toString()
static DriveType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DriveType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final DriveType UNKNOWN
The drive type could not be determined.
-
REMOVABLE
public static final DriveType REMOVABLE
A removable drive.
-
FIXED
public static final DriveType FIXED
A fixed (local) drive.
-
REMOTE
public static final DriveType REMOTE
A remote (network) drive.
-
CDROM
public static final DriveType CDROM
A CD-ROM.
-
RAMDISK
public static final DriveType RAMDISK
A ram disk.
-
-
Method Detail
-
values
public static DriveType[] 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 (DriveType c : DriveType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DriveType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getFromIntValue
public static DriveType getFromIntValue(int value)
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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<DriveType>
-
-