MergedAnnotations implementation backed by a Collection of
MergedAnnotation instances that represent direct annotations.
MergedAnnotations#of(Collection)
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final MergedAnnotation | |
| private final AnnotationTypeMappings[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private <A extends Annotation> MergedAnnotation | find(Object requiredType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector)
|
| public <A extends Annotation> MergedAnnotation | get(Class<A>
the annotation type to get annotationType)Implements org. MergedAnnotation#missing() if none is present.
|
| public <A extends Annotation> MergedAnnotation | get(Class<A>
the annotation type to get annotationType, Predicate<? super MergedAnnotation<A>> a predicate that must match, or predicate)null if only
type matching is requiredImplements org. MergedAnnotation#missing() if none is present.
|
| public <A extends Annotation> MergedAnnotation | get(Class<A>
the annotation type to get annotationType, Predicate<? super MergedAnnotation<A>> a predicate that must match, or predicate, MergedAnnotationSelector<A> null if only
type matching is requireda selector used to choose the most appropriate annotation
within an aggregate, or selector)null to select the
nearestImplements org. MergedAnnotation#missing() if none is present.
|
| public <A extends Annotation> MergedAnnotation | get(String
the fully qualified class name of the annotation type
to get annotationType)Implements org. MergedAnnotation#missing() if none is present.
|
| public <A extends Annotation> MergedAnnotation | get(String
the fully qualified class name of the annotation type
to get annotationType, Predicate<? super MergedAnnotation<A>> a predicate that must match, or predicate)null if only
type matching is requiredImplements org. MergedAnnotation#missing() if none is present.
|
| public <A extends Annotation> MergedAnnotation | get(String
the fully qualified class name of the annotation type
to get annotationType, Predicate<? super MergedAnnotation<A>> a predicate that must match, or predicate, MergedAnnotationSelector<A> null if only
type matching is requireda selector used to choose the most appropriate annotation
within an aggregate, or selector)null to select the
nearestImplements org. MergedAnnotation#missing() if none is present.
|
| public <A extends Annotation> boolean | isDirectlyPresent(Class<A>
the annotation type to check annotationType)Implements org. |
| public boolean | isDirectlyPresent(String
the fully qualified class name of the annotation type
to check annotationType)Implements org. |
| private static boolean | |
| public <A extends Annotation> boolean | isPresent(Class<A>
the annotation type to check annotationType)Implements org. |
| public boolean | isPresent(String
the fully qualified class name of the annotation type
to check annotationType)Implements org. |
| private boolean | |
| public Iterator | |
| pack-priv static MergedAnnotations | of(Collection<MergedAnnotation<?>>
the annotations to include annotations)Hides org. MergedAnnotations instance from the specified
collection of directly present annotations.
|
| public Spliterator | spliterator()
Overrides default java. Spliterator over the elements described by this
Iterable.
|
| private <A extends Annotation> Spliterator | |
| public <A extends Annotation> Stream | stream(Class<A>
the annotation type to match annotationType)Implements org. |
| public <A extends Annotation> Stream | stream(String
the fully qualified class name of the annotation type
to match annotationType)Implements org. |
| public Stream | stream()
Implements org. |
| annotations | back to summary |
|---|---|
| private final MergedAnnotation<?>[] annotations | |
| mappings | back to summary |
|---|---|
| private final AnnotationTypeMappings[] mappings | |
| MergedAnnotationsCollection | back to summary |
|---|---|
| private MergedAnnotationsCollection(Collection<MergedAnnotation<?>> annotations) | |
| find | back to summary |
|---|---|
private <A extends Annotation> MergedAnnotation
| |
| get | back to summary |
|---|---|
| public <A extends Annotation> MergedAnnotation Implements org. Doc from org. Get the nearest matching
annotation or meta-annotation of the specified type, or
| |
| get | back to summary |
|---|---|
| public <A extends Annotation> MergedAnnotation Implements org. Doc from org. Get the nearest matching
annotation or meta-annotation of the specified type, or
| |
| get | back to summary |
|---|---|
| public <A extends Annotation> MergedAnnotation Implements org. Doc from org. Get a matching annotation or meta-annotation of the specified type, or
| |
| get | back to summary |
|---|---|
| public <A extends Annotation> MergedAnnotation Implements org. Doc from org. Get the nearest matching
annotation or meta-annotation of the specified type, or
| |
| get | back to summary |
|---|---|
| public <A extends Annotation> MergedAnnotation Implements org. Doc from org. Get the nearest matching
annotation or meta-annotation of the specified type, or
| |
| get | back to summary |
|---|---|
| public <A extends Annotation> MergedAnnotation Implements org. Doc from org. Get a matching annotation or meta-annotation of the specified type, or
| |
| isDirectlyPresent | back to summary |
|---|---|
| public <A extends Annotation> boolean isDirectlyPresent(Class<A> annotationType) Implements org. Doc from org. Determine if the specified annotation type is directly present. Equivalent to calling | |
| isDirectlyPresent | back to summary |
|---|---|
| public boolean isDirectlyPresent(String annotationType) Implements org. Doc from org. Determine if the specified annotation type is directly present. Equivalent to calling | |
| isMappingForType | back to summary |
|---|---|
| private static boolean isMappingForType(AnnotationTypeMapping mapping, Object requiredType) | |
| isPresent | back to summary |
|---|---|
| public <A extends Annotation> boolean isPresent(Class<A> annotationType) Implements org. Doc from org. Determine if the specified annotation type is either directly present or meta-present. Equivalent to calling | |
| isPresent | back to summary |
|---|---|
| public boolean isPresent(String annotationType) Implements org. Doc from org. Determine if the specified annotation type is either directly present or meta-present. Equivalent to calling | |
| isPresent | back to summary |
|---|---|
| private boolean isPresent(Object requiredType, boolean directOnly) | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| of | back to summary |
|---|---|
| pack-priv static MergedAnnotations of(Collection<MergedAnnotation<?>> annotations) Hides org. Doc from org. Create a new The resulting
| |
| spliterator | back to summary |
|---|---|
| public Spliterator Overrides default java. Doc from java. Creates a
| |
| spliterator | back to summary |
|---|---|
| private <A extends Annotation> Spliterator | |
| stream | back to summary |
|---|---|
| public <A extends Annotation> Stream Implements org. Doc from org. Stream all annotations and meta-annotations that match the specified type. The resulting stream follows the same ordering rules as
| |
| stream | back to summary |
|---|---|
| public <A extends Annotation> Stream Implements org. Doc from org. Stream all annotations and meta-annotations that match the specified type. The resulting stream follows the same ordering rules as
| |
| stream | back to summary |
|---|---|
| public Stream Implements org. Doc from org. Stream all annotations and meta-annotations contained in this collection. The resulting stream is ordered first by the aggregate index and then by the annotation distance (with the closest annotations first). This ordering means that, for most use-cases, the most suitable annotations appear earliest in the stream.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int[] | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | characteristics()
Implements java. |
| private MergedAnnotation | |
| public long | estimateSize()
Implements java. forEachRemaining traversal, or returns Long#MAX_VALUE if infinite, unknown, or too expensive to compute.
|
| private AnnotationTypeMapping | |
| private AnnotationTypeMapping | |
| public boolean | tryAdvance(Consumer<? super MergedAnnotation<A>>
The action whose operation is performed at-most once action)Implements java. true; else returns false.
|
| public Spliterator | trySplit()
Implements java. |
| mappingCursors | back to summary |
|---|---|
| private final int[] mappingCursors | |
| requiredType | back to summary |
|---|---|
| private final Object requiredType
| |
| AnnotationsSpliterator | back to summary |
|---|---|
| public AnnotationsSpliterator(Object requiredType) | |
| characteristics | back to summary |
|---|---|
| public int characteristics() Implements java. Doc from java. Returns a set of characteristics of this Spliterator and its
elements. The result is represented as ORed values from If a Spliterator reports an inconsistent set of characteristics (either those returned from a single invocation or across multiple invocations), no guarantees can be made about any computation using this Spliterator.
| |
| createMergedAnnotationIfPossible | back to summary |
|---|---|
private MergedAnnotation
| |
| estimateSize | back to summary |
|---|---|
| public long estimateSize() Implements java. Doc from java. Returns an estimate of the number of elements that would be
encountered by a If this Spliterator is
| |
| getMapping | back to summary |
|---|---|
private AnnotationTypeMapping getMapping(int annotationIndex, int mappingIndex)
| |
| getNextSuitableMapping | back to summary |
|---|---|
private AnnotationTypeMapping getNextSuitableMapping(int annotationIndex)
| |
| tryAdvance | back to summary |
|---|---|
| public boolean tryAdvance(Consumer<? super MergedAnnotation<A>> action) Implements java. Doc from java. If a remaining element exists: performs the given action on it,
returning Subsequent behavior of a spliterator is unspecified if the action throws an exception.
| |
| trySplit | back to summary |
|---|---|
| public Spliterator Implements java. Doc from java. If this spliterator can be partitioned, returns a Spliterator covering elements, that will, upon return from this method, not be covered by this Spliterator. If this Spliterator is Unless this Spliterator covers an infinite number of elements,
repeated calls to
This method may return
| |