public static enum Member.Role extends Enum<Member.Role>
Modifier and Type | Method and Description |
---|---|
static Member.Role |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Member.Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Member.Role PRIMARY
public static final Member.Role SECONDARY
public static Member.Role[] values()
for (Member.Role c : Member.Role.values()) System.out.println(c);
public static Member.Role 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 © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.