You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
382 B
29 lines
382 B
package module; |
|
|
|
import com.hypaas.db.ValueEnum; |
|
import java.util.Objects; |
|
|
|
public enum AlarmLevel implements ValueEnum<Integer> { |
|
P0(1), |
|
|
|
P1(2), |
|
|
|
P2(4), |
|
|
|
P3(8), |
|
|
|
P4(16), |
|
|
|
P5(32); |
|
|
|
private final Integer value; |
|
|
|
private AlarmLevel(Integer value) { |
|
this.value = Objects.requireNonNull(value); |
|
} |
|
|
|
@Override |
|
public Integer getValue() { |
|
return value; |
|
} |
|
}
|
|
|