public enum DriveStatus extends Enum<DriveStatus>
Enum Constant and Description |
---|
COPYING |
MOUNTED |
UNAVAILABLE |
UNMOUNTED |
Modifier and Type | Method and Description |
---|---|
static DriveStatus |
fromValue(String status) |
String |
toString() |
String |
value() |
static DriveStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DriveStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DriveStatus MOUNTED
public static final DriveStatus UNMOUNTED
public static final DriveStatus UNAVAILABLE
public static final DriveStatus COPYING
public static DriveStatus[] values()
for (DriveStatus c : DriveStatus.values()) System.out.println(c);
public static DriveStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String value()
public String toString()
toString
in class Enum<DriveStatus>
public static DriveStatus fromValue(String status)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.