easytests.core.entities.SolutionEntity   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
c 1
b 0
f 0
loc 15
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A map(SolutionModelInterface) 0 4 1
1
package easytests.core.entities;
2
3
import easytests.core.models.SolutionModelInterface;
4
import lombok.*;
5
6
/**
7
 * @author SingularityA
8
 */
9
@Data
10
public class SolutionEntity {
11
12
    private Integer id;
13
14
    //private Integer sort;
15
16
    private Integer answerId;
17
18
    private Integer pointId;
19
20
    public void map(SolutionModelInterface solutionModel) {
21
        this.setId(solutionModel.getId());
22
        this.setAnswerId(solutionModel.getAnswer().getId());
23
        this.setPointId(solutionModel.getPoint().getId());
24
    }
25
}
26