Enum Class MedicalItemType
- All Implemented Interfaces:
Serializable, Comparable<MedicalItemType>, Constable
医疗物品类型
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription解毒剂 - 治疗中毒绷带 - 治疗刀伤、箭伤止血药 - 治疗流血草药包 - 治疗砸伤、水肿、火伤万能药 - 治疗所有伤势夹板 - 治疗骨折 -
Method Summary
Modifier and TypeMethodDescriptionstatic MedicalItemTypefromItemId(String itemId) 根据物品ID获取医疗物品类型static MedicalItemTypeReturns the enum constant of this class with the specified name.static MedicalItemType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BANDAGE
绷带 - 治疗刀伤、箭伤 -
HERBAL_MEDICINE
草药包 - 治疗砸伤、水肿、火伤 -
SPLINT
夹板 - 治疗骨折 -
ANTIDOTE
解毒剂 - 治疗中毒 -
HEMOSTATIC_MEDICINE
止血药 - 治疗流血 -
PANACEA
万能药 - 治疗所有伤势
-
-
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
-
fromItemId
根据物品ID获取医疗物品类型
-