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 IntegerTransformer< | |
10 | T | |
11 | > extends | |
12 | ComparableNumberTransformer< | |
13 | IntegerTransformer<T>, | |
14 | IntegerChecker<T>, | |
15 | T, | |
16 | Integer> { | |
17 | static IntegerTransformer<Integer> create(Supplier<Integer> value) { | |
18 |
1
1. create : replaced return value with null for com/github/dakusui/pcond/core/fluent/builtins/IntegerTransformer::create → KILLED |
return new Impl<>(value, trivialIdentityFunction()); |
19 | } | |
20 | ||
21 | @SuppressWarnings("unchecked") | |
22 | default IntegerTransformer<T> transform(Function<IntegerTransformer<Integer>, Predicate<Integer>> clause) { | |
23 |
2
1. lambda$transform$0 : replaced return value with null for com/github/dakusui/pcond/core/fluent/builtins/IntegerTransformer::lambda$transform$0 → NO_COVERAGE 2. transform : replaced return value with null for com/github/dakusui/pcond/core/fluent/builtins/IntegerTransformer::transform → NO_COVERAGE |
return this.addTransformAndCheckClause(tx -> clause.apply((IntegerTransformer<Integer>) tx)); |
24 | } | |
25 | class Impl< | |
26 | T | |
27 | > extends | |
28 | Base< | |
29 | IntegerTransformer<T>, | |
30 | IntegerChecker<T>, | |
31 | T, | |
32 | Integer> implements | |
33 | IntegerTransformer<T> { | |
34 | public Impl(Supplier<T> baseValue, Function<T, Integer> transformFunction) { | |
35 | super(baseValue, transformFunction); | |
36 | } | |
37 | ||
38 | @Override | |
39 | public IntegerChecker<T> toChecker(Function<T, Integer> transformFunction) { | |
40 |
1
1. toChecker : replaced return value with null for com/github/dakusui/pcond/core/fluent/builtins/IntegerTransformer$Impl::toChecker → KILLED |
return new IntegerChecker.Impl<>(this::baseValue, transformFunction); |
41 | } | |
42 | ||
43 | @Override | |
44 | public IntegerTransformer<Integer> rebase() { | |
45 |
1
1. rebase : replaced return value with null for com/github/dakusui/pcond/core/fluent/builtins/IntegerTransformer$Impl::rebase → NO_COVERAGE |
return new IntegerTransformer.Impl<>(this::value, trivialIdentityFunction()); |
46 | } | |
47 | } | |
48 | } | |
Mutations | ||
18 |
1.1 |
|
23 |
1.1 2.2 |
|
40 |
1.1 |
|
45 |
1.1 |