net.jqwik.time.internal.properties.providers.LocalDateArbitraryProvider Maven / Gradle / Ivy
package net.jqwik.time.internal.properties.providers;
import java.time.*;
import java.util.*;
import net.jqwik.api.*;
import net.jqwik.api.providers.*;
import net.jqwik.time.api.*;
public class LocalDateArbitraryProvider implements ArbitraryProvider {
@Override
public boolean canProvideFor(TypeUsage targetType) {
return targetType.isAssignableFrom(LocalDate.class);
}
@Override
public Set> provideFor(TypeUsage targetType, SubtypeProvider subtypeProvider) {
return Collections.singleton(Dates.dates());
}
}