Class AnnotationMergeCollector

java.lang.Object
org.reflections.util.AnnotationMergeCollector
All Implemented Interfaces:
Collector<Annotation,Map<String,Object>,Map<String,Object>>

public class AnnotationMergeCollector extends Object implements Collector<Annotation,Map<String,Object>,Map<String,Object>>
merge annotations by mapping 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())