BrightSide Workbench Full Report + Source Code
org.turro.alliance.model.AxParticipationSet Class Reference
Inheritance diagram for org.turro.alliance.model.AxParticipationSet:
Collaboration diagram for org.turro.alliance.model.AxParticipationSet:

Public Member Functions

boolean add (AxParticipation e)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 28 of file AxParticipationSet.java.

Member Function Documentation

◆ add()

boolean org.turro.alliance.model.AxParticipationSet.add ( AxParticipation  e)

Definition at line 31 of file AxParticipationSet.java.

31  {
32  AxParticipation axp = stream().filter(p -> p.equals(e)).findFirst().orElse(null);
33  if(axp != null) {
34  axp.setAdmin(axp.isAdmin() || e.isAdmin());
35  axp.setBeneficiary(axp.isBeneficiary()|| e.isBeneficiary());
36  axp.setConsortium(axp.isConsortium()|| e.isConsortium());
37  axp.setCoordinator(axp.isCoordinator()|| e.isCoordinator());
38  axp.setDriver(axp.isDriver()|| e.isDriver());
39  axp.setFunding(axp.isFunding()|| e.isFunding());
40  axp.setOfferer(axp.isOfferer()|| e.isOfferer());
41  axp.setResearch(axp.isResearch()|| e.isResearch());
42  axp.setSupport(axp.isSupport()|| e.isSupport());
43  return true;
44  } else {
45  return super.add(e);
46  }
47  }
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: