private Integer nrgContainsClientAndNetwork(List<NodeRuleGroup> nrgList, Uuid clientNepUuid, Uuid networkNepUuid) {
// 1 NRG should at least contain the NEP of interest in the NEP List
private Integer nrgContainsClientAndNetwork(List<NodeRuleGroup> nrgList, Uuid clientNepUuid, Uuid networkNepUuid) {
// 1 NRG should at least contain the NEP of interest in the NEP List
- if (nep.getNodeEdgePointUuid().equals(clientNepUuid)) {
- foundClient = true;
- } else if (nep.getNodeEdgePointUuid().equals(networkNepUuid)) {
- foundNetwork = true;
- }
+ foundClient = foundClient || nep.getNodeEdgePointUuid().equals(clientNepUuid);
+ foundNetwork = foundNetwork || nep.getNodeEdgePointUuid().equals(networkNepUuid);