public enum Type extends Enum<Type>
| Enum Constant and Description |
|---|
CLICK_FORCESAVE
The user clicks the forcesave button (the type ID is 2).
|
CONNECTED
A new user connects to the document co-editing (the type ID is 1).
|
DISCONNECTED
The user disconnects from the document co-editing (the type ID is 0).
|
| Modifier and Type | Field and Description |
|---|---|
private static Map<Integer,Type> |
BY_ID
Defines a map of the action types with their IDs.
|
private int |
id
Defines the action type ID.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
getId()
Returns the action type ID.
|
static Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Type |
valueOfId(Integer code)
Returns the enum constant of this type with the specified ID.
|
static Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Type DISCONNECTED
public static final Type CONNECTED
public static final Type CLICK_FORCESAVE
public static Type[] values()
for (Type c : Type.values()) System.out.println(c);
public static Type 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 Type valueOfId(Integer code)
code - The ID of the enum constant to be returned.int getId()
Copyright © 2023–2024. All rights reserved.