package jnpf.tmsEntity.enums; /** * 是否(通用 1/0)。 *

字典:{@code tmsYesNo} / {@code tmsEnableStatus}

*/ public enum TmsYesNo implements TmsDictEnum { /** 是 / 启用 */ YES("1", "是"), /** 否 / 停用 */ NO("0", "否"); private final String code; private final String label; TmsYesNo(String code, String label) { this.code = code; this.label = label; } @Override public String getCode() { return code; } @Override public String getLabel() { return label; } public boolean isYes() { return this == YES; } public static TmsYesNo of(String code) { return TmsDictEnum.of(TmsYesNo.class, code); } public static boolean isYesCode(String code) { return YES.equalsCode(code); } }