net.jqwik.vavr.arbitraries.VavrLazyArbitrary Maven / Gradle / Ivy
package net.jqwik.vavr.arbitraries;
import net.jqwik.vavr.arbitraries.base.SingleValueArbitrary;
import io.vavr.Lazy;
import net.jqwik.api.Arbitrary;
public class VavrLazyArbitrary extends SingleValueArbitrary> implements Arbitrary> {
public VavrLazyArbitrary(final Arbitrary innerArbitrary) {
super(innerArbitrary);
}
@Override
protected Lazy mapValue(final T value) {
return Lazy.of(() -> value);
}
}