ObjectChecker.java

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

Mutations

34

1.1
Location : rebase
Killed by : none
replaced return value with null for com/github/valid8j/pcond/core/fluent/builtins/ObjectChecker$Impl::rebase → SURVIVED

Active mutators

Tests examined


Report generated by PIT 1.7.3