OptaPlanner examples 6.2.0.Beta1

org.optaplanner.examples.pas.domain
Enum GenderLimitation

java.lang.Object
  extended by java.lang.Enum<GenderLimitation>
      extended by org.optaplanner.examples.pas.domain.GenderLimitation
All Implemented Interfaces:
Serializable, Comparable<GenderLimitation>

public enum GenderLimitation
extends Enum<GenderLimitation>


Enum Constant Summary
ANY_GENDER
           
FEMALE_ONLY
           
MALE_ONLY
           
SAME_GENDER
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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()

OptaPlanner examples 6.2.0.Beta1

Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.