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