public enum GenderLimitation extends Enum<GenderLimitation>
Enum Constant and Description |
---|
ANY_GENDER |
FEMALE_ONLY |
MALE_ONLY |
SAME_GENDER |
Modifier and Type | Method and Description |
---|---|
String |
getCode() |
static GenderLimitation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GenderLimitation |
valueOfCode(String code) |
static GenderLimitation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GenderLimitation ANY_GENDER
public static final GenderLimitation MALE_ONLY
public static final GenderLimitation FEMALE_ONLY
public static final GenderLimitation SAME_GENDER
public static GenderLimitation[] values()
for (GenderLimitation c : GenderLimitation.values()) System.out.println(c);
public static GenderLimitation 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 GenderLimitation valueOfCode(String code)
public String getCode()
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.