All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy