dnet-hadoop/dhp-workflows/dhp-aggregation/src/main/java/eu/dnetlib/dhp/actionmanager/bipfinder/BipDeserialize.java

29 lines
538 B
Java
Raw Normal View History

2020-12-01 14:31:34 +01:00
package eu.dnetlib.dhp.actionmanager.bipfinder;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
2020-12-01 18:36:29 +01:00
/**
* Class that maps the model of the bipFinder! input data.
* Only needed for deserialization purposes
*/
2020-12-01 14:31:34 +01:00
public class BipDeserialize extends HashMap<String, List<Score>> implements Serializable {
2020-12-01 14:31:34 +01:00
public BipDeserialize() {
super();
}
2020-12-01 14:31:34 +01:00
public List<Score> get(String key) {
2020-12-01 14:31:34 +01:00
if (super.get(key) == null) {
return new ArrayList<>();
}
return super.get(key);
}
}