1 | package com.github.valid8j.pcond.core.fluent.builtins; | |
2 | ||
3 | import com.github.valid8j.pcond.core.fluent.AbstractObjectTransformer; | |
4 | import com.github.valid8j.pcond.internals.InternalUtils; | |
5 | ||
6 | import java.util.function.Function; | |
7 | import java.util.function.Supplier; | |
8 | import java.util.stream.Stream; | |
9 | ||
10 | public interface StreamTransformer< | |
11 | T, | |
12 | E> extends | |
13 | AbstractObjectTransformer< | |
14 | StreamTransformer<T, E>, | |
15 | StreamChecker<T, E>, | |
16 | T, | |
17 | Stream<E> | |
18 | > { | |
19 | static <E> StreamTransformer<Stream<E>, E> create(Supplier<Stream<E>> value) { | |
20 |
1
1. create : replaced return value with null for com/github/valid8j/pcond/core/fluent/builtins/StreamTransformer::create → KILLED |
return new Impl<>(value, InternalUtils.trivialIdentityFunction()); |
21 | } | |
22 | ||
23 | class Impl< | |
24 | T, | |
25 | E> extends | |
26 | Base< | |
27 | StreamTransformer<T, E>, | |
28 | StreamChecker<T, E>, | |
29 | T, | |
30 | Stream<E>> implements | |
31 | StreamTransformer<T, E> { | |
32 | ||
33 | public Impl(Supplier<T> rootValue, Function<T, Stream<E>> root) { | |
34 | super(rootValue, root); | |
35 | } | |
36 | ||
37 | @Override | |
38 | protected StreamChecker<T, E> toChecker(Function<T, Stream<E>> transformFunction) { | |
39 |
1
1. toChecker : replaced return value with null for com/github/valid8j/pcond/core/fluent/builtins/StreamTransformer$Impl::toChecker → KILLED |
return new StreamChecker.Impl<>(this::baseValue, transformFunction); |
40 | } | |
41 | ||
42 | @Override | |
43 | protected StreamTransformer<Stream<E>, E> rebase() { | |
44 |
1
1. rebase : replaced return value with null for com/github/valid8j/pcond/core/fluent/builtins/StreamTransformer$Impl::rebase → NO_COVERAGE |
return new Impl<>(this::value, InternalUtils.trivialIdentityFunction()); |
45 | } | |
46 | } | |
47 | } | |
Mutations | ||
20 |
1.1 |
|
39 |
1.1 |
|
44 |
1.1 |