DoubleChecker.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 DoubleChecker<
10
    T
11
    > extends
12
    ComparableNumberChecker<
13
        DoubleChecker<T>,
14
        T,
15
        Double> {
16
17
  class Impl<
18
      T
19
      > extends
20
      Base<
21
          DoubleChecker<T>,
22
          T,
23
          Double> implements
24
      DoubleChecker<
25
          T> {
26
    public Impl(Supplier<T> baseValue, Function<T, Double> transformFunction) {
27
      super(baseValue, transformFunction);
28
    }
29
30
    @Override
31
    protected DoubleChecker<Double> rebase() {
32 1 1. rebase : replaced return value with null for com/github/dakusui/pcond/core/fluent/builtins/DoubleChecker$Impl::rebase → SURVIVED
      return new DoubleChecker.Impl<>(this::value, trivialIdentityFunction());
33
    }
34
  }
35
}

Mutations

32

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

Active mutators

Tests examined


Report generated by PIT 1.7.3