summaryrefslogtreecommitdiff
path: root/gi/posterior-regularisation/prjava/src/util/Pair.java
blob: 7b1f108d606d0d19c98efea05e1251d24790cc64 (plain)
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
package util;

public class Pair<O1, O2> {
	public O1 _first;
	public O2 _second;

	public final O1 first() {
		return _first;
	}

	public final O2 second() {
		return _second;
	}

	public final void setFirst(O1 value){
		_first = value;
	}
	
	public final void setSecond(O2 value){
		_second = value;
	}
	
	public Pair(O1 first, O2 second) {
		_first = first;
		_second = second;
	}

	public String toString(){
		return _first + " " + _second; 
	}
}