public class AnnotationMergeCollector extends Object implements Collector<Annotation,Map<String,Object>,Map<String,Object>>
ReflectionUtils.toMap(Annotation)
and reduce using the given mergeFunction
mergeFunction defaults to concatValues(Object, Object).
optional annotatedElement used by ReflectionUtils.toMap(Annotation, AnnotatedElement)
get(Annotations.of(...))
.stream()
.collect(new AnnotationMergeCollector())Collector.Characteristics| Constructor and Description |
|---|
AnnotationMergeCollector() |
AnnotationMergeCollector(AnnotatedElement annotatedElement) |
AnnotationMergeCollector(AnnotatedElement annotatedElement,
BiFunction<Object,Object,Object> mergeFunction) |
| Modifier and Type | Method and Description |
|---|---|
BiConsumer<Map<String,Object>,Annotation> |
accumulator() |
Set<Collector.Characteristics> |
characteristics() |
BinaryOperator<Map<String,Object>> |
combiner() |
Function<Map<String,Object>,Map<String,Object>> |
finisher() |
Supplier<Map<String,Object>> |
supplier() |
public AnnotationMergeCollector(AnnotatedElement annotatedElement, BiFunction<Object,Object,Object> mergeFunction)
public AnnotationMergeCollector()
public AnnotationMergeCollector(AnnotatedElement annotatedElement)
public BiConsumer<Map<String,Object>,Annotation> accumulator()
accumulator in interface Collector<Annotation,Map<String,Object>,Map<String,Object>>public BinaryOperator<Map<String,Object>> combiner()
public Set<Collector.Characteristics> characteristics()
characteristics in interface Collector<Annotation,Map<String,Object>,Map<String,Object>>Copyright © 2023. All rights reserved.