定义枚举类

    技术2022-07-12  83

    public enum IsNotEnum {

    IS(1, "是") , NOT(0, "否"); private int code; private String name; IsNotEnum(Integer code, String name) { this.code = code; this.name = name; } public int getCode() { return code; } public void setCode(int code) { this.code = code; } public String getName() { return name; } public void setName(String name) { this.name = name; }

    }

    Processed: 0.014, SQL: 9