IntegerChecker.java
package com.github.dakusui.pcond.core.fluent.builtins;
import java.util.function.Function;
import java.util.function.Supplier;
import static com.github.dakusui.pcond.internals.InternalUtils.trivialIdentityFunction;
public interface IntegerChecker<
OIN
> extends
ComparableNumberChecker<
IntegerChecker<OIN>,
OIN,
Integer> {
class Impl<
T> extends
Base<
IntegerChecker<T>,
T,
Integer>
implements IntegerChecker<T> {
public Impl(Supplier<T> baseValue, Function<T, Integer> transformFunction) {
super(baseValue, transformFunction);
}
@Override
public IntegerChecker<Integer> rebase() {
return new IntegerChecker.Impl<>(this::value, trivialIdentityFunction());
}
}
}