LongChecker.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 LongChecker<
OIN
> extends
ComparableNumberChecker<
LongChecker<OIN>,
OIN,
Long> {
class Impl<T> extends
Base<
LongChecker<T>,
T,
Long> implements
LongChecker<
T> {
public Impl(Supplier<T> baseValue, Function<T, Long> transformFunction) {
super(baseValue, transformFunction);
}
@Override
protected LongChecker<Long> rebase() {
return new LongChecker.Impl<>(this::value, trivialIdentityFunction());
}
}
}