public enum ForcesaveType extends Enum<ForcesaveType>
| Enum Constant and Description |
|---|
COMMAND_SERVICE
The force saving request is performed to the command service (the type ID is 0).
|
SAVE_BUTTON
The force saving request is performed each time the saving is done (e.g.
|
SUBMIT_FORM
The force saving request is performed by submit form(the type ID is 3).
|
TIMER
The force saving request is performed by timer with the settings from the server config (the type ID is 2).
|
| Modifier and Type | Field and Description |
|---|---|
private static Map<Integer,ForcesaveType> |
BY_ID
Defines a map of the force saving request types with their IDs.
|
private int |
id
Defines the ID of the force saving request type.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
getId()
Returns the ID of the force saving request type.
|
static ForcesaveType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ForcesaveType |
valueOfId(Integer code)
Returns the enum constant of this type with the specified ID.
|
static ForcesaveType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ForcesaveType COMMAND_SERVICE
public static final ForcesaveType SAVE_BUTTON
public static final ForcesaveType TIMER
public static final ForcesaveType SUBMIT_FORM
private final int id
private static final Map<Integer,ForcesaveType> BY_ID
public static ForcesaveType[] values()
for (ForcesaveType c : ForcesaveType.values()) System.out.println(c);
public static ForcesaveType 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 ForcesaveType valueOfId(Integer code)
code - The ID of the enum constant to be returned.int getId()
Copyright © 2023–2024. All rights reserved.