|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<CarType>
org.drools.examples.carinsurance.domain.CarType
public enum CarType
| Enum Constant Summary | |
|---|---|
LARGE
High risk for theft, low risk for injuries inside, high risk for injuries outside. |
|
LUXURY
High risk for repair costs. |
|
MEDIUM
Normal risk |
|
MUSCLE
High risk for everything |
|
SMALL
Low risk for theft, high risk for injuries inside. |
|
SPORT
High risk for everything |
|
| Method Summary | |
|---|---|
static CarType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CarType[] |
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 |
|---|
public static final CarType SMALL
public static final CarType MEDIUM
public static final CarType LARGE
public static final CarType SPORT
public static final CarType MUSCLE
public static final CarType LUXURY
| Method Detail |
|---|
public static CarType[] values()
for (CarType c : CarType.values()) System.out.println(c);
public static CarType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||