package com.github.wz2cool.dynamic;

import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * @author Frank
 **/
@SuppressWarnings("squid:S1172")
@JsonTypeName("filterGroupDescriptor")
public class FilterGroupDescriptor<T>
        extends BaseFilterGroup<T, FilterGroupDescriptor<T>>
        implements BaseFilterDescriptor<T> {

    private FilterCondition condition = FilterCondition.AND;

    @Override
    public FilterCondition getCondition() {
        return condition;
    }

    @Override
    public void setCondition(FilterCondition condition) {
        this.condition = condition;
    }
}

@@ -390,16 +390,393 @@
 n.AND;%0A%0A
+    private Class%3CT%3E clazz;%0A%0A    public FilterGroupDescriptor() %7B%0A        // hide construct%0A    %7D%0A%0A    public FilterGroupDescriptor(Class%3CT%3E clazz) %7B%0A        this.clazz = clazz;%0A    %7D%0A%0A    public static %3CT%3E FilterGroupDescriptor%3CT%3E create(Class%3CT%3E clazz) %7B%0A        return new FilterGroupDescriptor%3C%3E(clazz);%0A    %7D%0A%0A    public Class%3CT%3E getClazz() %7B%0A        return clazz;%0A    %7D%0A%0A
     @Ove

add create