Add copy constructor in stakeholder class.
This commit is contained in:
parent
8eb99c8ae1
commit
54f9ebb9ce
|
@ -17,6 +17,10 @@ public class Stakeholder extends StakeholderGeneric<String> {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Stakeholder(Stakeholder stakeholder) {
|
||||||
|
super(stakeholder);
|
||||||
|
}
|
||||||
|
|
||||||
public Stakeholder(StakeholderFull stakeholder) {
|
public Stakeholder(StakeholderFull stakeholder) {
|
||||||
super(stakeholder);
|
super(stakeholder);
|
||||||
this.topics = stakeholder.getTopics().stream().map(Common::getId).collect(Collectors.toList());
|
this.topics = stakeholder.getTopics().stream().map(Common::getId).collect(Collectors.toList());
|
||||||
|
|
Loading…
Reference in New Issue