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

net.jqwik.vavr.providers.base.AbstractArbitraryProvider Maven / Gradle / Ivy

package net.jqwik.vavr.providers.base;

import net.jqwik.api.providers.ArbitraryProvider;
import net.jqwik.api.providers.TypeUsage;

/**
 * @author Benno Müller
 */
public abstract class AbstractArbitraryProvider implements ArbitraryProvider {

    @Override
    public boolean canProvideFor(final TypeUsage targetType) {
        return targetType.isAssignableFrom(getProvidedType());
    }

    protected abstract Class getProvidedType();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy