de.unikassel.android.sdcframework.util
Enum ExternalStorageStateChangeEventImpl.State

Package class diagram package ExternalStorageStateChangeEventImpl.State
java.lang.Object
  extended by java.lang.Enum<ExternalStorageStateChangeEventImpl.State>
      extended by de.unikassel.android.sdcframework.util.ExternalStorageStateChangeEventImpl.State
All Implemented Interfaces:
Serializable, Comparable<ExternalStorageStateChangeEventImpl.State>
Enclosing class:
ExternalStorageStateChangeEventImpl

public static enum ExternalStorageStateChangeEventImpl.State
extends Enum<ExternalStorageStateChangeEventImpl.State>

Internal state representation for external storage availability


Enum Constant Summary
AVAILABLE_FOR_READ
          external storage is mounted for read
AVAILABLE_FOR_WRITE
          external storage is mounted for write
UNAVAILABLE
          external storage is not available
 
Method Summary
static ExternalStorageStateChangeEventImpl.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ExternalStorageStateChangeEventImpl.State[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNAVAILABLE

public static final ExternalStorageStateChangeEventImpl.State UNAVAILABLE
external storage is not available


AVAILABLE_FOR_READ

public static final ExternalStorageStateChangeEventImpl.State AVAILABLE_FOR_READ
external storage is mounted for read


AVAILABLE_FOR_WRITE

public static final ExternalStorageStateChangeEventImpl.State AVAILABLE_FOR_WRITE
external storage is mounted for write

Method Detail

values

public static ExternalStorageStateChangeEventImpl.State[] 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 (ExternalStorageStateChangeEventImpl.State c : ExternalStorageStateChangeEventImpl.State.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ExternalStorageStateChangeEventImpl.State valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null