io.github.ro4.CheckTemplate   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 13
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
eloc 8
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getChecker() 0 2 1
A check(Context) 0 2 1
A setChecker(Checker) 0 2 1
1
package io.github.ro4;
2
3
import io.github.ro4.check.Checker;
4
5 1
public class CheckTemplate {
6
    private volatile Checker checker;
7
8
    public boolean check(Context ctx) {
9 1
        return checker.pass(ctx);
10
    }
11
12
    public void setChecker(Checker checker) {
13 1
        this.checker = checker;
14 1
    }
15
16
    public Checker getChecker() {
17 1
        return checker;
18
    }
19
20
}
21