@Unstable public enum MedicationEffect extends Enum<MedicationEffect>
| Enum Constant and Description |
|---|
INTERMEDIATE_IMPROVEMENT
Moderate improvement.
|
NONE
No effect.
|
SLIGHT_IMPROVEMENT
Slight improvement.
|
STRONG_IMPROVEMENT
Strong improvement, the symptoms got visibly better.
|
UNKNOWN
Unknown effect.
|
WORSENING
The symptoms got worse.
|
| Modifier and Type | Method and Description |
|---|---|
static MedicationEffect |
fromString(String effect)
Get the enum instance corresponding to either a CAPITAL_CASE or a camelCase version of its name.
|
String |
toString() |
static MedicationEffect |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MedicationEffect[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MedicationEffect UNKNOWN
public static final MedicationEffect WORSENING
public static final MedicationEffect NONE
public static final MedicationEffect SLIGHT_IMPROVEMENT
public static final MedicationEffect INTERMEDIATE_IMPROVEMENT
public static final MedicationEffect STRONG_IMPROVEMENT
public static MedicationEffect[] values()
for (MedicationEffect c : MedicationEffect.values()) System.out.println(c);
public static MedicationEffect 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 MedicationEffect fromString(String effect)
effect - the serialized effect nameIllegalArgumentException - if the effect name cannot be resolved to a known effect instancepublic String toString()
toString in class Enum<MedicationEffect>Copyright © 2011–2015 University of Toronto, Computational Biology Lab. All rights reserved.