1 | package com.github.dakusui.pcond.core.fluent.builtins; | |
2 | ||
3 | import com.github.dakusui.pcond.core.fluent.AbstractObjectChecker; | |
4 | ||
5 | import java.util.function.Function; | |
6 | import java.util.function.Supplier; | |
7 | ||
8 | import static com.github.dakusui.pcond.internals.InternalUtils.trivialIdentityFunction; | |
9 | ||
10 | /** | |
11 | * This interface is used for object whose type doesn't have an explicit support. | |
12 | * Do not try to extend/implement this class to support your own class. | |
13 | */ | |
14 | public interface ObjectChecker< | |
15 | OIN, | |
16 | E> extends | |
17 | AbstractObjectChecker< | |
18 | ObjectChecker<OIN, E>, | |
19 | OIN, | |
20 | E> { | |
21 | class Impl< | |
22 | OIN, | |
23 | E> extends | |
24 | Base< | |
25 | ObjectChecker<OIN, E>, | |
26 | OIN, | |
27 | E> implements | |
28 | ObjectChecker<OIN, E> { | |
29 | public Impl(Supplier<OIN> baseValue, Function<OIN, E> root) { | |
30 | super(baseValue, root); | |
31 | } | |
32 | ||
33 | @Override | |
34 | protected ObjectChecker<E, E> rebase() { | |
35 |
1
1. rebase : replaced return value with null for com/github/dakusui/pcond/core/fluent/builtins/ObjectChecker$Impl::rebase → SURVIVED |
return new ObjectChecker.Impl<>(this::value, trivialIdentityFunction()); |
36 | } | |
37 | } | |
38 | } | |
Mutations | ||
35 |
1.1 |