Untitled

 avatar
unknown
plain_text
5 months ago
589 B
5
Indexable
@Data
@EqualsAndHashCode
@JsonIgnoreProperties(ignoreUnknown = true)
public class FeatureChangeDTO {
    /**
     * RuleConfig
     */
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class RuleConfig {
        public boolean isDelete() {
            return after == null;
        }

        public boolean isUpdate() {
            return before != null && after != null;
        }

        public boolean isCreate() {
            return before == null;
        }


        private Config before;
        private Config after;

    }
}
Editor is loading...
Leave a Comment