public static enum BioMaterialEvent.Type extends Enum<BioMaterialEvent.Type>
Enum Constant and Description |
---|
BIOASSAY
An event of this type created a physical bioassay.
|
CREATION
An event of this type created a biomaterial.
|
OTHER
An event of this type affected a single biomaterial in some way.
|
Modifier and Type | Field and Description |
---|---|
private String |
displayValue |
private int |
value |
private static Map<Integer,BioMaterialEvent.Type> |
valueMapping
Maps the integer that is stored in the database.
|
Modifier and Type | Method and Description |
---|---|
static BioMaterialEvent.Type |
fromValue(int value)
Get the
BioMaterialEvent.Type object when you know the integer code. |
int |
getValue()
Get the integer value that is used when storing a
BioMaterialEvent.Type
to the database. |
String |
toString() |
static BioMaterialEvent.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BioMaterialEvent.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BioMaterialEvent.Type CREATION
public static final BioMaterialEvent.Type BIOASSAY
public static final BioMaterialEvent.Type OTHER
private static final Map<Integer,BioMaterialEvent.Type> valueMapping
private final int value
private final String displayValue
public static BioMaterialEvent.Type[] values()
for (BioMaterialEvent.Type c : BioMaterialEvent.Type.values()) System.out.println(c);
public static BioMaterialEvent.Type 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 BioMaterialEvent.Type fromValue(int value)
BioMaterialEvent.Type
object when you know the integer code.value
- The integer value.public String toString()
toString
in class Enum<BioMaterialEvent.Type>
public int getValue()
BioMaterialEvent.Type
to the database.