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

Mutations

29

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

Active mutators

Tests examined


Report generated by PIT 1.7.3