Skip to content

Package: ModeOption

ModeOption

nameinstructionbranchcomplexitylinemethod
ModeOption(Integer)
M: 0 C: 6
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 3
100%
M: 0 C: 1
100%
getMode()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
isModeOption()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: package generator.option;
2:
3: /**
4: *
5: * @author Muri
6: *
7: */
8: public class ModeOption extends AbstractOption {
9:
10:         /**
11:          * Mode.
12:          */
13:         private final transient Integer mode;
14:
15:         /**
16:          *
17:          * @param mode
18:          * Integer
19:          */
20:         public ModeOption(final Integer mode) {
21:                 super();
22:                 this.mode = mode;
23:         }
24:
25:         /**
26:          * Will return the mode in octal.
27:          *
28:          * @return the mode
29:          */
30:         public Integer getMode() {
31:                 return this.mode;
32:         }
33:
34:         /**
35:          *
36:          * @return true
37:          */
38:         @Override
39:         public boolean isModeOption() {
40:                 return true;
41:         }
42:
43: }