package uk.ac.ebi.quickgo.webservice.model;

import java.util.List;

/**
 * @Author Tony Wardell
 * Date: 16/06/2015
 * Time: 16:25
 * Created with IntelliJ IDEA.
 */
public class Filter {

	private String type;
	private String value;

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getValue() {
		return value;
	}

	public void setValues(String value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return "Filter{" +
				"type='" + type + '\'' +
				", value='" + value + '\'' +
				'}';
	}

}

package uk.ac.ebi.quickgo.webservice.model;

import java.util.List;

/**
 * @Author Tony Wardell
 * Date: 16/06/2015
 * Time: 16:25
 * Created with IntelliJ IDEA.
 */
public class Filter {

	private String type;
	private String value;

	public Filter() {};	//Jackson needs default constructor

	public Filter(String type, String value) {
		this.type = type;
		this.value = value;
	}

	public String getType() {
		return type;
	}


	public String getValue() {
		return value;
	}


	@Override
	public String toString() {
		return "Filter{" +
				"type='" + type + '\'' +
				", value='" + value + '\'' +
				'}';
	}

}

Make this class imutable.