1 |
49763
|
panagiotis
|
package eu.dnetlib.repo.manager.shared;
|
2 |
40542
|
stefania.m
|
|
3 |
|
|
import com.google.gwt.user.client.rpc.IsSerializable;
|
4 |
|
|
|
5 |
|
|
/**
|
6 |
|
|
* Created by stefania on 12/18/15.
|
7 |
|
|
*/
|
8 |
|
|
public class Tuple<K, V> implements IsSerializable {
|
9 |
|
|
|
10 |
|
|
private K first;
|
11 |
|
|
private V second;
|
12 |
|
|
|
13 |
|
|
public Tuple() {
|
14 |
|
|
}
|
15 |
|
|
|
16 |
|
|
public Tuple(K first, V second) {
|
17 |
|
|
this.first = first;
|
18 |
|
|
this.second = second;
|
19 |
|
|
}
|
20 |
|
|
|
21 |
|
|
public K getFirst() {
|
22 |
|
|
return first;
|
23 |
|
|
}
|
24 |
|
|
|
25 |
|
|
public void setFirst(K first) {
|
26 |
|
|
this.first = first;
|
27 |
|
|
}
|
28 |
|
|
|
29 |
|
|
public V getSecond() {
|
30 |
|
|
return second;
|
31 |
|
|
}
|
32 |
|
|
|
33 |
|
|
public void setSecond(V second) {
|
34 |
|
|
this.second = second;
|
35 |
|
|
}
|
36 |
|
|
}
|