public static enum File.Action extends Enum<File.Action>
Enum Constant and Description |
---|
MOVE_TO_PRIMARY
The file should be brought back from secondary storage.
|
MOVE_TO_SECONDARY
The file should be moved to secondary storage
|
NOTHING
Do nothing.
|
Modifier and Type | Field and Description |
---|---|
private int |
value
The integer value of this fileaction.
|
private static Map<Integer,File.Action> |
valueMapping
Maps the integer that is stored in the database with an fileaction.
|
Modifier and Type | Method and Description |
---|---|
static File.Action |
fromValue(int value)
Get the
File.Action object when you know the integer code. |
int |
getValue()
Get the integer value that is used when storing an File.Action to the database.
|
static File.Action |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static File.Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final File.Action NOTHING
public static final File.Action MOVE_TO_PRIMARY
public static final File.Action MOVE_TO_SECONDARY
private static final Map<Integer,File.Action> valueMapping
private final int value
public static File.Action[] values()
for (File.Action c : File.Action.values()) System.out.println(c);
public static File.Action 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 static File.Action fromValue(int value)
File.Action
object when you know the integer code.value
- The integer value.public int getValue()