|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Location>
org.proteios.core.Location
public enum Location
This enumeration defines constants that are used to specify different file storage locations.
| Enum Constant Summary | |
|---|---|
OFFLINE
The item is offline and doesn't use any quota. |
|
PRIMARY
The item is stored in primary storage. |
|
SECONDARY
The item is stored in secondary storage. |
|
| Method Summary | |
|---|---|
static Location |
fromValue(int value)
Get the Location object when you know the integer code. |
int |
getValue()
Get the integer value that is used when storing an location to the database. |
String |
toString()
|
static Location |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Location[] |
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, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Location OFFLINE
public static final Location PRIMARY
public static final Location SECONDARY
| Method Detail |
|---|
public static Location[] values()
for (Location c : Location.values()) System.out.println(c);
public static Location valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String toString()
toString in class Enum<Location>public static Location fromValue(int value)
Location object when you know the integer code.
value - The integer value.
public int getValue()
|
Last update: 2011-06-23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||