zy-acs-manager/src/main/java/com/zy/acs/manager/manager/enums/StaReserveStateType.java
@@ -1,5 +1,8 @@ package com.zy.acs.manager.manager.enums; import com.zy.acs.framework.common.Cools; import com.zy.acs.framework.exception.CoolException; public enum StaReserveStateType { RESERVED, @@ -9,4 +12,16 @@ TIMEOUT, ; public static StaReserveStateType of(String state) { if (Cools.isEmpty(state)) { return null; } for (StaReserveStateType type : StaReserveStateType.values()) { if (type.toString().equals(state)) { return type; } } throw new CoolException("failed to find StaReserveStateType for [" + state + "]"); } }