blob: 48cda881a7cd19e5d8a4f540dfd01b4dbfdc6a80 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2015 Frank Becker and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Frank Becker - initial API and implementation
*******************************************************************************/
package org.eclipse.mylyn.internal.provisional.tasks.ui.wizards;
import java.util.ArrayList;
import java.util.List;
public class QueryPageFilter {
private final String key;
private final List<String> values = new ArrayList<String>();
public QueryPageFilter(String key, String value) {
this.key = key;
values.add(value);
}
public String getKey() {
return key;
}
public String getValue() {
return values.get(0);
}
public List<String> getValues() {
return values;
}
public void setValue(String value) {
values.clear();
values.add(value);
}
public void setValues(List<String> value) {
values.clear();
values.addAll(value);
}
public void addValue(String value) {
values.add(value);
}
}