org.optaplanner.examples.manners2009.domain
public enum JobType extends Enum<JobType>
Enum Constant and Description |
---|
DOCTOR |
POLITICIAN |
PROGRAMMER |
SOCIALITE |
SPORTS_STAR |
TEACHER |
Modifier and Type | Method and Description |
---|---|
String |
getCode() |
static JobType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JobType |
valueOfCode(String code) |
static JobType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobType POLITICIAN
public static final JobType SOCIALITE
public static final JobType DOCTOR
public static final JobType SPORTS_STAR
public static final JobType TEACHER
public static final JobType PROGRAMMER
public static JobType[] values()
for (JobType c : JobType.values()) System.out.println(c);
public static JobType 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 String getCode()
Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.