Project

General

Profile

1
package eu.dnetlib.msro.workflows.hadoop.utils;
2

    
3
import com.google.gson.Gson;
4

    
5
import eu.dnetlib.data.proto.TypeProtos.Type;
6
import eu.dnetlib.miscutils.collections.Pair;
7

    
8
public class Similarity {
9

    
10
	private Pair<String, String> pair;
11
	private Type type;
12

    
13
	public Similarity(final Pair<String, String> pair, final Type type) {
14
		super();
15
		this.setPair(pair);
16
		this.setType(type);
17
	}
18

    
19
	public Pair<String, String> getPair() {
20
		return pair;
21
	}
22

    
23
	public void setPair(final Pair<String, String> pair) {
24
		this.pair = pair;
25
	}
26

    
27
	public Type getType() {
28
		return type;
29
	}
30

    
31
	public void setType(final Type type) {
32
		this.type = type;
33
	}
34

    
35
	@Override
36
	public String toString() {
37
		return new Gson().toJson(this, Similarity.class);
38
	}
39
}
(1-1/2)