public enum UserOperations extends Enum<UserOperations>
| Enum Constant and Description |
|---|
ADD_USER |
DELETE_USER |
GET_USER |
UPDATE_USER |
| Modifier and Type | Method and Description |
|---|---|
String |
getOperation() |
static UserOperations |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UserOperations[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UserOperations GET_USER
public static final UserOperations ADD_USER
public static final UserOperations DELETE_USER
public static final UserOperations UPDATE_USER
public static UserOperations[] values()
for (UserOperations c : UserOperations.values()) System.out.println(c);
public static UserOperations 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 String getOperation()
Copyright © 2022. All rights reserved.