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

com.giffing.bucket4j.spring.boot.starter.context.constraintvalidations.ValidDurationChronoUnit Maven / Gradle / Ivy

The newest version!
package com.giffing.bucket4j.spring.boot.starter.context.constraintvalidations;

import java.lang.annotation.*;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;

@Documented
@Constraint(validatedBy = DurationChronoUnitValidator.class)
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface ValidDurationChronoUnit {

	String message() default "Unsupported duration ChronoUnit. Only time based units are supported (NANOS to DAYS inclusive).";

	Class[] groups() default {};

	Class[] payload() default {};
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy