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