Passed
Push — master ( 93a836...a92af1 )
by Tomasz
03:51
created

rest.validation.ContractValidationReportDto.addInteractions(List)   A

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 2
c 0
b 0
f 0
rs 10
cc 1
1
package dev.hltech.dredd.interfaces.rest.validation;
2
3
import com.google.common.collect.Lists;
4
import lombok.Getter;
5
6
import java.util.List;
7
8
@Getter
9
public class ContractValidationReportDto {
10
11
    private ConsumerAndProviderDto consumerAndProvider;
12
13
    private List<InteractionValidationReportDto> interactions = Lists.newLinkedList();
14
15
    public ContractValidationReportDto(ConsumerAndProviderDto consumerAndProvider) {
16
        this.consumerAndProvider = consumerAndProvider;
17
    }
18
19
    public void addInteractions(List<InteractionValidationReportDto> interactions) {
20
        this.interactions.addAll(interactions);
21
    }
22
23
}
24