/FileExtraction/Java_unseen/ClimbAssist_ClimbAssistService/src/main/java/com/climbassist/api/resource/pitch/ValidDistance.java
package com.climbassist.api.resource.pitch;

import org.hibernate.validator.constraints.ConstraintComposition;

import javax.validation.Constraint;
import javax.validation.Payload;
import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.PARAMETER, ElementType.ANNOTATION_TYPE})
@ConstraintComposition
@Constraint(validatedBy = {})
@DecimalMin(value = "" + (-Double.MAX_VALUE),
        message = "Distance must be between " + (-Double.MAX_VALUE) + " and " + Double.MAX_VALUE + ".")
@DecimalMax(value = "" + Double.MAX_VALUE,
        message = "Distance must be between " + (-Double.MAX_VALUE) + " and " + Double.MAX_VALUE + ".")
public @interface ValidDistance {

    String message() default "";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
