Enum Class的使用
cn.taketoday.core.annotation.MergedAnnotation.Adapt
使用MergedAnnotation.Adapt的程序包
程序包
说明
Core support package for annotations, meta-annotations, and merged
annotations with attribute overrides.
-
cn.taketoday.core.annotation中MergedAnnotation.Adapt的使用
修饰符和类型方法说明static MergedAnnotation.AdaptReturns the enum constant of this class with the specified name.static MergedAnnotation.Adapt[]MergedAnnotation.Adapt.values()Returns an array containing the constants of this enum class, in the order they are declared.static MergedAnnotation.Adapt[]MergedAnnotation.Adapt.values(boolean classToString, boolean annotationsToMap) Factory method to create anMergedAnnotation.Adaptarray from a set of boolean flags.修饰符和类型方法说明MergedAnnotation.asAnnotationAttributes(MergedAnnotation.Adapt... adaptations) Create a new mutableAnnotationAttributesinstance from this merged annotation.MergedAnnotation.asMap(MergedAnnotation.Adapt... adaptations) Get an immutableMapthat contains all the annotation attributes.MergedAnnotation.asMap(Function<MergedAnnotation<?>, T> factory, MergedAnnotation.Adapt... adaptations) Create a newMapinstance of the given type that contains all the annotation attributes.static <A extends Annotation>
Collector<MergedAnnotation<A>,?, MultiValueMap<String, Object>> MergedAnnotationCollectors.toMultiValueMap(MergedAnnotation.Adapt... adaptations) Create a newCollectorthat accumulates merged annotations to aMultiValueMapwith items added from each merged annotation as a map.static <A extends Annotation>
Collector<MergedAnnotation<A>,?, MultiValueMap<String, Object>> MergedAnnotationCollectors.toMultiValueMap(UnaryOperator<MultiValueMap<String, Object>> finisher, MergedAnnotation.Adapt... adaptations) Create a newCollectorthat accumulates merged annotations to aMultiValueMapwith items added from each merged annotation as a map.