
com.github.fashionbrot.validated.validator.support.AnnotationCustom Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mars-validated Show documentation
Show all versions of mars-validated Show documentation
mars-validated 参数验证 https://github.com/fashionbrot/mars-validated
package com.github.fashionbrot.validated.validator.support;
import java.lang.annotation.Annotation;
public interface AnnotationCustom {
/**
* 根据 parmaeter 获取 参数
* 或者跟 field 获取属性
*
* @param annotationClass annotationClass
* @param annotationClass
* @return Annotation
*/
T getDeclaredAnnotation(ParameterType parameterType, Class annotationClass);
/**
* 设置默认值
*
* @param parameterType parameterType
* @param defaultValue defaultValue
* @param objects objects
* @param index index
*/
void setDefault(ParameterType parameterType, Object defaultValue, Object[] objects, int index);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy