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