Package net.sf.basedb.core
Enum Class BioMaterialEvent.Type
- All Implemented Interfaces:
Serializable
,Comparable<BioMaterialEvent.Type>
,Constable
- Enclosing class:
- BioMaterialEvent
The type of the event.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
private final int
private static final Map<Integer,
BioMaterialEvent.Type> Maps the integer that is stored in the database. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BioMaterialEvent.Type
fromValue
(int value) Get theBioMaterialEvent.Type
object when you know the integer code.int
getValue()
Get the integer value that is used when storing aBioMaterialEvent.Type
to the database.toString()
static BioMaterialEvent.Type
Returns the enum constant of this class with the specified name.static BioMaterialEvent.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATION
An event of this type created a biomaterial. -
BIOASSAY
An event of this type created a physical bioassay. -
OTHER
An event of this type affected a single biomaterial in some way.
-
-
Field Details
-
valueMapping
Maps the integer that is stored in the database. -
value
private final int value -
displayValue
-
-
Constructor Details
-
Type
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromValue
Get theBioMaterialEvent.Type
object when you know the integer code.- Parameters:
value
- The integer value.- Returns:
- The type object or null if the value is unknown
-
toString
- Overrides:
toString
in classEnum<BioMaterialEvent.Type>
-
getValue
public int getValue()Get the integer value that is used when storing aBioMaterialEvent.Type
to the database.- Returns:
- The intger value of this type
-