org.drools.planner.examples.pas.domain
Enum GenderLimitation
java.lang.Object
java.lang.Enum<GenderLimitation>
org.drools.planner.examples.pas.domain.GenderLimitation
- All Implemented Interfaces:
- Serializable, Comparable<GenderLimitation>
public enum GenderLimitation
- extends Enum<GenderLimitation>
ANY_GENDER
public static final GenderLimitation ANY_GENDER
MALE_ONLY
public static final GenderLimitation MALE_ONLY
FEMALE_ONLY
public static final GenderLimitation FEMALE_ONLY
SAME_GENDER
public static final GenderLimitation SAME_GENDER
values
public static GenderLimitation[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (GenderLimitation c : GenderLimitation.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static GenderLimitation valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
valueOfCode
public static GenderLimitation valueOfCode(String code)
getCode
public String getCode()
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.