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 | /** | |
9 | * A transformer interface for float. | |
10 | * | |
11 | * @param <T> A type of value from which it is transformed to `float`. | |
12 | */ | |
13 | public interface FloatTransformer< | |
14 | T | |
15 | > extends | |
16 | ComparableNumberTransformer< | |
17 | FloatTransformer<T>, | |
18 | FloatChecker<T>, | |
19 | T, | |
20 | Float> { | |
21 | static FloatTransformer<Float> create(Supplier<Float> value) { | |
22 |
1
1. create : replaced return value with null for com/github/valid8j/pcond/core/fluent/builtins/FloatTransformer::create → KILLED |
return new Impl<>(value, InternalUtils.trivialIdentityFunction()); |
23 | } | |
24 | ||
25 | class Impl< | |
26 | T | |
27 | > extends | |
28 | Base< | |
29 | FloatTransformer<T>, | |
30 | FloatChecker<T>, | |
31 | T, | |
32 | Float> implements | |
33 | FloatTransformer<T> { | |
34 | public Impl(Supplier<T> rootValue, Function<T, Float> root) { | |
35 | super(rootValue, root); | |
36 | } | |
37 | ||
38 | @Override | |
39 | protected FloatChecker<T> toChecker(Function<T, Float> transformFunction) { | |
40 |
1
1. toChecker : replaced return value with null for com/github/valid8j/pcond/core/fluent/builtins/FloatTransformer$Impl::toChecker → KILLED |
return new FloatChecker.Impl<>(this::baseValue, transformFunction); |
41 | } | |
42 | ||
43 | @Override | |
44 | protected FloatTransformer<Float> rebase() { | |
45 |
1
1. rebase : replaced return value with null for com/github/valid8j/pcond/core/fluent/builtins/FloatTransformer$Impl::rebase → NO_COVERAGE |
return new Impl<>(this::value, InternalUtils.trivialIdentityFunction()); |
46 | } | |
47 | } | |
48 | } | |
Mutations | ||
22 |
1.1 |
|
40 |
1.1 |
|
45 |
1.1 |