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

net.jqwik.time.internal.properties.arbitraries.valueRanges.LocalDateTimeBetween Maven / Gradle / Ivy

package net.jqwik.time.internal.properties.arbitraries.valueRanges;

import java.time.*;

public class LocalDateTimeBetween extends Between {
	@Override
	protected void checkValidity(LocalDateTime min, LocalDateTime max) {
		if ((min != null && min.getYear() <= 0) || (max != null && max.getYear() <= 0)) {
			throw new IllegalArgumentException("Minimum year in a date time must be > 0");
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy