115
115
*
116
116
* // get all ExampleAnnotation declarations (including any meta-annotations) and
117
117
* // print the merged "value" attributes
118
- * mergedAnnotations.stream(ExampleAnnotation.class).map(
119
- * a -> a.getString("value")).forEach(System.out::println);
118
+ * mergedAnnotations.stream(ExampleAnnotation.class)
119
+ * .map(mergedAnnotation -> mergedAnnotation.getString("value"))
120
+ * .forEach(System.out::println);
120
121
* </pre>
121
122
*
122
123
* @author Phillip Webb
@@ -152,7 +153,7 @@ public interface MergedAnnotations extends Iterable<MergedAnnotation<Annotation>
152
153
* Determine if the specified annotation is directly present.
153
154
* <p>Equivalent to calling {@code get(annotationType).isDirectlyPresent()}.
154
155
* @param annotationType the annotation type to check
155
- * @return {@code true} if the annotation is present
156
+ * @return {@code true} if the annotation is directly present
156
157
*/
157
158
<A extends Annotation > boolean isDirectlyPresent (Class <A > annotationType );
158
159
@@ -161,12 +162,12 @@ public interface MergedAnnotations extends Iterable<MergedAnnotation<Annotation>
161
162
* <p>Equivalent to calling {@code get(annotationType).isDirectlyPresent()}.
162
163
* @param annotationType the fully qualified class name of the annotation type
163
164
* to check
164
- * @return {@code true} if the annotation is present
165
+ * @return {@code true} if the annotation is directly present
165
166
*/
166
167
boolean isDirectlyPresent (String annotationType );
167
168
168
169
/**
169
- * Return the {@linkplain MergedAnnotationSelectors#nearest() nearest} matching
170
+ * Get the {@linkplain MergedAnnotationSelectors#nearest() nearest} matching
170
171
* annotation or meta-annotation of the specified type, or
171
172
* {@link MergedAnnotation#missing()} if none is present.
172
173
* @param annotationType the annotation type to get
@@ -175,7 +176,7 @@ public interface MergedAnnotations extends Iterable<MergedAnnotation<Annotation>
175
176
<A extends Annotation > MergedAnnotation <A > get (Class <A > annotationType );
176
177
177
178
/**
178
- * Return the {@linkplain MergedAnnotationSelectors#nearest() nearest} matching
179
+ * Get the {@linkplain MergedAnnotationSelectors#nearest() nearest} matching
179
180
* annotation or meta-annotation of the specified type, or
180
181
* {@link MergedAnnotation#missing()} if none is present.
181
182
* @param annotationType the annotation type to get
@@ -188,7 +189,7 @@ <A extends Annotation> MergedAnnotation<A> get(Class<A> annotationType,
188
189
@ Nullable Predicate <? super MergedAnnotation <A >> predicate );
189
190
190
191
/**
191
- * Return a matching annotation or meta-annotation of the specified type, or
192
+ * Get a matching annotation or meta-annotation of the specified type, or
192
193
* {@link MergedAnnotation#missing()} if none is present.
193
194
* @param annotationType the annotation type to get
194
195
* @param predicate a predicate that must match, or {@code null} if only
@@ -205,7 +206,7 @@ <A extends Annotation> MergedAnnotation<A> get(Class<A> annotationType,
205
206
@ Nullable MergedAnnotationSelector <A > selector );
206
207
207
208
/**
208
- * Return the {@linkplain MergedAnnotationSelectors#nearest() nearest} matching
209
+ * Get the {@linkplain MergedAnnotationSelectors#nearest() nearest} matching
209
210
* annotation or meta-annotation of the specified type, or
210
211
* {@link MergedAnnotation#missing()} if none is present.
211
212
* @param annotationType the fully qualified class name of the annotation type
@@ -215,7 +216,7 @@ <A extends Annotation> MergedAnnotation<A> get(Class<A> annotationType,
215
216
<A extends Annotation > MergedAnnotation <A > get (String annotationType );
216
217
217
218
/**
218
- * Return the {@linkplain MergedAnnotationSelectors#nearest() nearest} matching
219
+ * Get the {@linkplain MergedAnnotationSelectors#nearest() nearest} matching
219
220
* annotation or meta-annotation of the specified type, or
220
221
* {@link MergedAnnotation#missing()} if none is present.
221
222
* @param annotationType the fully qualified class name of the annotation type
@@ -229,7 +230,7 @@ <A extends Annotation> MergedAnnotation<A> get(String annotationType,
229
230
@ Nullable Predicate <? super MergedAnnotation <A >> predicate );
230
231
231
232
/**
232
- * Return a matching annotation or meta-annotation of the specified type, or
233
+ * Get a matching annotation or meta-annotation of the specified type, or
233
234
* {@link MergedAnnotation#missing()} if none is present.
234
235
* @param annotationType the fully qualified class name of the annotation type
235
236
* to get
@@ -443,7 +444,7 @@ enum SearchStrategy {
443
444
/**
444
445
* Perform a full search of the entire type hierarchy on the source
445
446
* <em>and</em> any enclosing classes. This strategy is similar to
446
- * {@link #TYPE_HIERARCHY} except that {@link Class#getEnclosingClass()
447
+ * {@link #TYPE_HIERARCHY} except that {@linkplain Class#getEnclosingClass()
447
448
* enclosing classes} are also searched. Superclass annotations do not
448
449
* need to be meta-annotated with {@link Inherited @Inherited}. When
449
450
* searching a {@link Method} source, this strategy is identical to
0 commit comments