forked from D-Net/dnet-hadoop
add method addPid
This commit is contained in:
parent
5153d88bd3
commit
04fc223346
|
@ -2,7 +2,6 @@ package eu.dnetlib.dhp.schema.oaf;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
|
||||||
public class Author implements Serializable {
|
public class Author implements Serializable {
|
||||||
|
|
||||||
|
@ -86,17 +85,12 @@ public class Author implements Serializable {
|
||||||
|
|
||||||
public void addPid(StructuredProperty pid) {
|
public void addPid(StructuredProperty pid) {
|
||||||
|
|
||||||
if (pid == null)
|
if (pid == null) return;
|
||||||
return;
|
|
||||||
|
|
||||||
if(this.pid == null){
|
if (this.pid == null) {
|
||||||
this.pid = Arrays.asList(pid);
|
this.pid = Arrays.asList(pid);
|
||||||
}else{
|
} else {
|
||||||
this.pid.add(pid);
|
this.pid.add(pid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue