package de.tblsoft.search.query;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by tblsoft on 11.11.16.
 */
public class SearchFilter<T> {

    private Operator operator = Operator.OR;

    private boolean exclude = true;


    private String name;

    private List<T> values = new ArrayList<T>();


    public List<T> getValues() {
        return values;
    }

    public void setValues(List<T> values) {
        this.values = values;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Operator getOperator() {
        return operator;
    }

    public void setOperator(Operator operator) {
        this.operator = operator;
    }

    public boolean isExclude() {
        return exclude;
    }

    public void setExclude(boolean exclude) {
        this.exclude = exclude;
    }
}

@@ -237,16 +237,39 @@
  true;%0A%0A
+    private String id;%0A
 %0A    pri
@@ -474,32 +474,150 @@
  values;%0A    %7D%0A%0A
+    public String getId() %7B%0A        return id;%0A    %7D%0A%0A    public void setId(String id) %7B%0A        this.id = id;%0A    %7D%0A%0A
     public Strin
@@ -994,24 +994,24 @@
  exclude) %7B%0A
-
         this
@@ -1035,11 +1035,320 @@
 e;%0A    %7D
+%0A%0A    @Override%0A    public String toString() %7B%0A        return %22SearchFilter%7B%22 +%0A                %22operator=%22 + operator +%0A                %22, exclude=%22 + exclude +%0A                %22, id='%22 + id + '%5C'' +%0A                %22, name='%22 + name + '%5C'' +%0A                %22, values=%22 + values +%0A                '%7D';%0A    %7D
 %0A%7D%0A

add the id to the searchfilter