Class AnnotationMergeCollector
java.lang.Object
org.reflections.util.AnnotationMergeCollector
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())-
Nested Class Summary
Nested classes/interfaces inherited from interface Collector
Collector.Characteristics -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AnnotatedElementprivate final BiFunction<Object, Object, Object> -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationMergeCollector(AnnotatedElement annotatedElement) AnnotationMergeCollector(AnnotatedElement annotatedElement, BiFunction<Object, Object, Object> mergeFunction) -
Method Summary
-
Field Details
-
annotatedElement
-
mergeFunction
-
-
Constructor Details
-
AnnotationMergeCollector
public AnnotationMergeCollector(AnnotatedElement annotatedElement, BiFunction<Object, Object, Object> mergeFunction) -
AnnotationMergeCollector
public AnnotationMergeCollector() -
AnnotationMergeCollector
-
-
Method Details
-
supplier
-
accumulator
- Specified by:
accumulatorin interfaceCollector<Annotation, Map<String,Object>, Map<String, Object>>
-
combiner
-
finisher
-
characteristics
- Specified by:
characteristicsin interfaceCollector<Annotation, Map<String,Object>, Map<String, Object>>
-
mergeMaps
-
concatValues
-
arrayAdd
-
stringArrayConcat
-
stringConcat
-