1 | package fr.sii.ogham.core.util.bean; | |
2 | ||
3 | /** | |
4 | * The value is already known so provide the value directly. | |
5 | * | |
6 | * @author Aurélien Baudet | |
7 | * | |
8 | * @param <T> | |
9 | * The type of the value | |
10 | */ | |
11 | public class DirectAccessor<T> implements Accessor<T> { | |
12 | private final T value; | |
13 | ||
14 | /** | |
15 | * Initialize with the provided value | |
16 | * | |
17 | * @param value | |
18 | * the value to always return on {@link #getValue()} | |
19 | */ | |
20 | public DirectAccessor(T value) { | |
21 | super(); | |
22 | this.value = value; | |
23 | } | |
24 | ||
25 | @Override | |
26 | public T getValue() { | |
27 |
2
1. getValue : replaced return value with null for fr/sii/ogham/core/util/bean/DirectAccessor::getValue → NO_COVERAGE 2. getValue : replaced return value with null for fr/sii/ogham/core/util/bean/DirectAccessor::getValue → KILLED |
return value; |
28 | } | |
29 | } | |
Mutations | ||
27 |
1.1 2.2 |