org.cardanofoundation.explorer.consumercommon.validation.TxIndex Maven / Gradle / Ivy
package org.cardanofoundation.explorer.consumercommon.validation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;
@Target({ ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = TxIndexValidator.class)
@Documented
public @interface TxIndex {
String message() default "The value must be TxIndex";
Class>[] groups() default { };
Class extends Payload>[] payload() default { };
}