# ItRequestLineNotifyTitleEnum.java

    package cloud.wconnect.it.cons.itrequest;

    import lombok.AllArgsConstructor;
    import lombok.Getter;

    import java.util.Arrays;
    import java.util.Optional;

    @Getter
    @AllArgsConstructor
    public enum ItRequestLineNotifyTitleEnum {

        OPERATION_CREATED(1, "New tech support"),

        OPERATION_UPDATED(2, "Edit tech support"),

        OPERATION_STATUS_ACCEPT(3, "Accept"),

        OPERATION_STATUS_DISTRIBUTION(4, "Assign"),

        OPERATION_STATUS_RESOLVE(5, "Resolve"),

        OPERATION_STATUS_UN_RESOLVE(6, "Unresolved"),

        OPERATION_STATUS_CLOSED(7, "Closed"),

        OPERATION_COMMENT(8, "New Comment");

        private final int code;

        private final String i18nCode;

        public static String getI18nCode(int code) {
            Optional<ItRequestLineNotifyTitleEnum> optional = Arrays.stream(ItRequestLineNotifyTitleEnum.values())
                    .filter(item -> item.getCode() == code).findFirst();
            return optional.isPresent() ? optional.get().getI18nCode() : "";
        }

    }