package com.iailab.module.model.common.enums; import lombok.AllArgsConstructor; import lombok.Getter; /** * @author DongYukun * @Description * @createTime 2024年1月2日 */ @Getter @AllArgsConstructor public enum ModelOutResultType { D("double", "double"), D1("double[]", "double[]"), D2("double[][]", "double[][]"); private String code; private String desc; public static ModelOutResultType getEumByCode(String code) { if (code == null) { return null; } for (ModelOutResultType statusEnum : ModelOutResultType.values()) { if (statusEnum.getCode().equals(code)) { return statusEnum; } } return null; } }