1 | package com.github.valid8j.pcond.core.fluent.builtins; | |
2 | ||
3 | import com.github.valid8j.pcond.core.fluent.AbstractObjectChecker; | |
4 | import com.github.valid8j.pcond.internals.InternalUtils; | |
5 | ||
6 | import java.util.function.Function; | |
7 | import java.util.function.Supplier; | |
8 | ||
9 | public interface ThrowableChecker< | |
10 | T, | |
11 | E extends Throwable> extends | |
12 | AbstractObjectChecker< | |
13 | ThrowableChecker<T, E>, | |
14 | T, | |
15 | E> { | |
16 | class Impl< | |
17 | T, | |
18 | E extends Throwable | |
19 | > extends | |
20 | Base< | |
21 | ThrowableChecker<T, E>, | |
22 | T, | |
23 | E | |
24 | > implements | |
25 | ThrowableChecker<T, E> { | |
26 | protected Impl(Supplier<T> baseValue, Function<T, E> transformFunction) { | |
27 | super(baseValue, transformFunction); | |
28 | } | |
29 | ||
30 | @Override | |
31 | protected ThrowableChecker<E, E> rebase() { | |
32 |
1
1. rebase : replaced return value with null for com/github/valid8j/pcond/core/fluent/builtins/ThrowableChecker$Impl::rebase → SURVIVED |
return new Impl<>(this::value, InternalUtils.trivialIdentityFunction()); |
33 | } | |
34 | } | |
35 | } | |
Mutations | ||
32 |
1.1 |