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.修饰符和类型方法说明TypeMappedAnnotation.adaptValueForMapOptions(Method attribute, Object value, Class<?> mapType, Function<MergedAnnotation<?>, T> factory, MergedAnnotation.Adapt[] adaptations) AbstractMergedAnnotation.asAnnotationAttributes(MergedAnnotation.Adapt... adaptations) MergedAnnotation.asAnnotationAttributes(MergedAnnotation.Adapt... adaptations) Create a new mutableAnnotationAttributesinstance from this merged annotation.MissingMergedAnnotation.asAnnotationAttributes(MergedAnnotation.Adapt... adaptations) 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.MissingMergedAnnotation.asMap(MergedAnnotation.Adapt... adaptations) MissingMergedAnnotation.asMap(Function<MergedAnnotation<?>, T> factory, MergedAnnotation.Adapt... adaptations) TypeMappedAnnotation.asMap(MergedAnnotation.Adapt... adaptations) TypeMappedAnnotation.asMap(Function<MergedAnnotation<?>, T> factory, MergedAnnotation.Adapt... adaptations) (专用程序包) final booleanMergedAnnotation.Adapt.containsIn(MergedAnnotation.Adapt... adaptations) private Class<?>TypeMappedAnnotation.getTypeForMapOptions(Method attribute, MergedAnnotation.Adapt[] adaptations) 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.