1
0
Fork 0

Hosted By Map - refactoring

This commit is contained in:
Miriam Baglioni 2021-08-03 10:44:13 +02:00
parent 17292c6641
commit 327cddde33
1 changed files with 48 additions and 49 deletions

View File

@ -1,3 +1,4 @@
package eu.dnetlib.dhp.oa.graph.hostedbymap.model;
import java.io.Serializable;
@ -9,8 +10,6 @@ public class EntityInfo implements Serializable {
private Boolean openaccess;
private String hb_id;
public String getId() {
return id;
}
@ -51,12 +50,12 @@ public class EntityInfo implements Serializable {
this.hb_id = hb_id;
}
public static EntityInfo newInstance(String id, String j_id, String name){
public static EntityInfo newInstance(String id, String j_id, String name) {
return newInstance(id, j_id, name, false);
}
public static EntityInfo newInstance(String id, String j_id, String name, Boolean openaccess){
public static EntityInfo newInstance(String id, String j_id, String name, Boolean openaccess) {
EntityInfo pi = new EntityInfo();
pi.id = id;
pi.journal_id = j_id;