public enum MembershipRole extends Enum<MembershipRole>
Enum Constant and Description |
---|
ADMIN
The user is an administrator in the group.
|
MEMBER
The user is a regular member in the group.
|
Modifier and Type | Method and Description |
---|---|
static MembershipRole |
fromString(String string) |
static MembershipRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MembershipRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MembershipRole ADMIN
public static final MembershipRole MEMBER
public static MembershipRole[] values()
for (MembershipRole c : MembershipRole.values()) System.out.println(c);
public static MembershipRole 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 MembershipRole fromString(String string)
Copyright © 2010–2017. All rights reserved.