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