1 | package com.github.valid8j.pcond.core.fluent.builtins; | |
2 | ||
3 | import com.github.valid8j.pcond.internals.InternalUtils; | |
4 | ||
5 | import java.util.function.Function; | |
6 | import java.util.function.Supplier; | |
7 | ||
8 | public interface DoubleTransformer< | |
9 | T | |
10 | > extends | |
11 | ComparableNumberTransformer< | |
12 | DoubleTransformer<T>, | |
13 | DoubleChecker<T>, | |
14 | T, | |
15 | Double> { | |
16 | static DoubleTransformer<Double> create(Supplier<Double> value) { | |
17 |
1
1. create : replaced return value with null for com/github/valid8j/pcond/core/fluent/builtins/DoubleTransformer::create → KILLED |
return new Impl<>(value, InternalUtils.trivialIdentityFunction()); |
18 | } | |
19 | ||
20 | class Impl< | |
21 | OIN | |
22 | > extends | |
23 | Base< | |
24 | DoubleTransformer<OIN>, | |
25 | DoubleChecker<OIN>, | |
26 | OIN, | |
27 | Double> implements | |
28 | DoubleTransformer<OIN> { | |
29 | public Impl(Supplier<OIN> baseValue, Function<OIN, Double> transformFunction) { | |
30 | super(baseValue, transformFunction); | |
31 | } | |
32 | ||
33 | @Override | |
34 | protected DoubleChecker<OIN> toChecker(Function<OIN, Double> transformFunction) { | |
35 |
1
1. toChecker : replaced return value with null for com/github/valid8j/pcond/core/fluent/builtins/DoubleTransformer$Impl::toChecker → KILLED |
return new DoubleChecker.Impl<>(this::baseValue, transformFunction); |
36 | } | |
37 | ||
38 | @Override | |
39 | protected DoubleTransformer<Double> rebase() { | |
40 |
1
1. rebase : replaced return value with null for com/github/valid8j/pcond/core/fluent/builtins/DoubleTransformer$Impl::rebase → NO_COVERAGE |
return new Impl<>(this::value, InternalUtils.trivialIdentityFunction()); |
41 | } | |
42 | } | |
43 | } | |
Mutations | ||
17 |
1.1 |
|
35 |
1.1 |
|
40 |
1.1 |