DoubleChecker.java

1
package com.github.valid8j.pcond.core.fluent.builtins;
2
3
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 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/valid8j/pcond/core/fluent/builtins/DoubleChecker$Impl::rebase → SURVIVED
      return new Impl<>(this::value, InternalUtils.trivialIdentityFunction());
33
    }
34
  }
35
}

Mutations

32

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

Active mutators

Tests examined


Report generated by PIT 1.7.3