Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 0d1e602dedc71b2456b2783df222399fb8ddefb0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*******************************************************************************
 * Copyright (c) 2015 Frank Becker and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Frank Becker - initial API and implementation
 *******************************************************************************/

package org.eclipse.linuxtools.internal.mylyn.osio.rest.ui.provisional;

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);
	}

}

Back to the top