Enum Constant and Description |
---|
CDROM
A CD-ROM.
|
FIXED
A fixed (local) drive.
|
RAMDISK
A ram disk.
|
REMOTE
A remote (network) drive.
|
REMOVABLE
A removable drive.
|
UNKNOWN
The drive type could not be determined.
|
Modifier and Type | Method and 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.
|
public static final DriveType UNKNOWN
public static final DriveType REMOVABLE
public static final DriveType FIXED
public static final DriveType REMOTE
public static final DriveType CDROM
public static final DriveType RAMDISK
public static DriveType[] values()
for (DriveType c : DriveType.values()) System.out.println(c);
public static DriveType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static DriveType getFromIntValue(int value)
value
- the int valuepublic int getIntValue()
public java.lang.String toString()
toString
in class java.lang.Enum<DriveType>