Add copy constructor in stakeholder class.

This commit is contained in:
Konstantinos Triantafyllou 2024-04-10 15:54:03 +03:00
parent 8eb99c8ae1
commit 54f9ebb9ce
1 changed files with 4 additions and 0 deletions

View File

@ -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());