IntegerChecker.java

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

Mutations

30

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

Active mutators

Tests examined


Report generated by PIT 1.7.3