public class AnnotationValueUtils extends Object
| Constructor and Description |
|---|
AnnotationValueUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Annotation> |
setValue(T annotation,
Consumer<Map<String,Object>> valueMapConsumer)
修改Annotation的值
|
static <T extends Annotation> |
setValue(T annotation,
cn.hutool.core.lang.Pair<String,Object>... values)
修改Annotation的值
|
static <T extends Annotation> |
setValue(T annotation,
String key,
Object value)
修改Annotation的值
|
public static <T extends Annotation> void setValue(T annotation, Consumer<Map<String,Object>> valueMapConsumer)
annotation - 注解valueMapConsumer - 注解的值public static <T extends Annotation> void setValue(T annotation, String key, Object value)
annotation - 注解key - 注解的keyvalue - 要修改的值@SafeVarargs public static <T extends Annotation> void setValue(T annotation, cn.hutool.core.lang.Pair<String,Object>... values)
annotation - 注解values - 要修改的映射列表 by hutool PairCopyright © 2020. All rights reserved.