S
- a self-bound over the type of the implementing classpublic interface AnnotatedSignature<S extends AnnotatedSignature<S>> extends Signature<S>
Modifier and Type | Method and Description |
---|---|
default S |
annotated(java.lang.annotation.Annotation... annotations)
Derive a version of this declaration with the given annotations.
|
S |
annotated(java.util.Collection<? extends java.lang.annotation.Annotation> annotations)
Derive a version of this declaration with the given annotations.
|
java.util.stream.Stream<? extends java.lang.annotation.Annotation> |
getAnnotations() |
java.util.stream.Stream<? extends java.lang.annotation.Annotation> getAnnotations()
default S annotated(java.lang.annotation.Annotation... annotations)
Target
, as there is no validation of
applicability.
Annotations already present on the receiving declaration will be replaced rather than appended.
annotations
- the annotations with which to annotate this declarationS annotated(java.util.Collection<? extends java.lang.annotation.Annotation> annotations)
Target
, as there is no validation of
applicability.
Annotations already present on the receiving declaration will be replaced rather than appended.
annotations
- the annotations with which to annotate this declaration