public enum CommunityMembershipType extends Enum<CommunityMembershipType> implements Serializable
| Enum Constant and Description |
|---|
Administrator
Administrator of the community.
|
Leader
Leader of the community.
|
Member
Participant in the community.
|
Observer
Observer of the community.
|
Other
Another role in the community.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Return the description for the enum.
|
String |
getName()
Return the descriptive name for the CommunityMembershipType enum instance
|
int |
getOrdinal()
Return the numerical value for the enum.
|
static CommunityMembershipType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommunityMembershipType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommunityMembershipType Member
public static final CommunityMembershipType Administrator
public static final CommunityMembershipType Leader
public static final CommunityMembershipType Observer
public static final CommunityMembershipType Other
public static CommunityMembershipType[] values()
for (CommunityMembershipType c : CommunityMembershipType.values()) System.out.println(c);
public static CommunityMembershipType 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 int getOrdinal()
public String getDescription()
public String getName()
Copyright © 2017–2018 ODPi. All rights reserved.