public enum UserType extends Enum<UserType>
User.type.| Enum Constant and Description |
|---|
ADMIN
Indicates the user is an admin user.
|
CUSTOMER
Indicates the user is a customer user.
|
| Modifier and Type | Method and Description |
|---|---|
static UserType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UserType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UserType ADMIN
AdminUserPersistenceHandlerpublic static final UserType CUSTOMER
CustomerPersistenceHandlerpublic static UserType[] values()
for (UserType c : UserType.values()) System.out.println(c);
public static UserType 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 nullCopyright © 2021. All rights reserved.