1 | package com.github.dakusui.pcond.core.fluent.builtins; | |
2 | ||
3 | import java.util.function.Function; | |
4 | import java.util.function.Predicate; | |
5 | import java.util.function.Supplier; | |
6 | ||
7 | import static com.github.dakusui.pcond.internals.InternalUtils.trivialIdentityFunction; | |
8 | ||
9 | public interface FloatTransformer< | |
10 | T | |
11 | > extends | |
12 | ComparableNumberTransformer< | |
13 | FloatTransformer<T>, | |
14 | FloatChecker<T>, | |
15 | T, | |
16 | Float> { | |
17 | static FloatTransformer<Float> create(Supplier<Float> value) { | |
18 |
1
1. create : replaced return value with null for com/github/dakusui/pcond/core/fluent/builtins/FloatTransformer::create → KILLED |
return new Impl<>(value, trivialIdentityFunction()); |
19 | } | |
20 | ||
21 | @SuppressWarnings("unchecked") | |
22 | default FloatTransformer<T> transform(Function<FloatTransformer<Float>, Predicate<Float>> clause) { | |
23 |
2
1. lambda$transform$0 : replaced return value with null for com/github/dakusui/pcond/core/fluent/builtins/FloatTransformer::lambda$transform$0 → NO_COVERAGE 2. transform : replaced return value with null for com/github/dakusui/pcond/core/fluent/builtins/FloatTransformer::transform → NO_COVERAGE |
return this.addTransformAndCheckClause(tx -> clause.apply((FloatTransformer<Float>) tx)); |
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/dakusui/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/dakusui/pcond/core/fluent/builtins/FloatTransformer$Impl::rebase → NO_COVERAGE |
return new FloatTransformer.Impl<>(this::value, trivialIdentityFunction()); |
46 | } | |
47 | } | |
48 | } | |
Mutations | ||
18 |
1.1 |
|
23 |
1.1 2.2 |
|
40 |
1.1 |
|
45 |
1.1 |