public enum CommunityMembershipType extends Enum<CommunityMembershipType> implements Serializable
| Enum Constant and Description |
|---|
ADMINISTRATOR |
CONTRIBUTOR |
LEADER |
OBSERVER |
OTHER |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Return the default description of the enumeration.
|
String |
getName()
Return the default name of the enumeration.
|
int |
getOrdinal()
Return the numeric representation of the enumeration.
|
String |
toString()
toString() JSON-style
|
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 CONTRIBUTOR
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 getName()
public String getDescription()
public String toString()
toString in class Enum<CommunityMembershipType>Copyright © 2018–2020 ODPi. All rights reserved.