public class AnnotationsProvider extends Object implements Annotations
Annotations.Builder<T extends Annotation>INSTANCE| Modifier and Type | Method and Description |
|---|---|
<T extends Annotation> |
create(Class<T> type)
Create an
Annotation literal Annotations.Builder. |
boolean |
equals(Annotation[] expected, Annotation[] actual)
Determines if one array of annotations is exactly equivalent to another
|
<T extends Annotation> |
literal(Class<T> type)
Create an
Annotation literal value that has no properties. |
<T extends Annotation> |
literal(Class<T> type, Object value)
Create an
Annotation literal value for the specified Annotation type, using the specified #value() property. |
boolean |
matches(Iterable<? extends Annotation> expected, Iterable<? extends Annotation> actual)
Determines if one array of annotations is a subset of another
|
<T extends Annotation> |
modify(T annotation)
Create an
Annotation literal Annotations.Builder initialized with the values of an existing annotation. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinstance, matchespublic <T extends Annotation> Annotations.Builder<T> create(Class<T> type)
AnnotationsAnnotation literal Annotations.Builder.create in interface AnnotationsT - An instance of an Annotation sub-typetype - The type of annotation to buildAnnotations.Builder instance.Annotations.Builderpublic boolean equals(Annotation[] expected, Annotation[] actual)
Annotationsequals in interface Annotationsexpected - The annotations that must be presentactual - The annotations that are presentpublic <T extends Annotation> T literal(Class<T> type)
AnnotationsAnnotation literal value that has no properties.literal in interface AnnotationsT - An instance of an Annotation sub-typetype - The type of annotation to instantiatepublic <T extends Annotation> T literal(Class<T> type, Object value)
AnnotationsAnnotation literal value for the specified Annotation type, using the specified #value() property.literal in interface AnnotationsT - An instance of an Annotation sub-typetype - The type of annotation to instantiatevalue - The value to assign to the #value() propertypublic boolean matches(Iterable<? extends Annotation> expected, Iterable<? extends Annotation> actual)
Annotationsmatches in interface Annotationsexpected - The annotations that must be presentactual - The annotations that are presentpublic <T extends Annotation> Annotations.Builder<T> modify(T annotation)
AnnotationsAnnotation literal Annotations.Builder initialized with the values of an existing annotation.modify in interface AnnotationsT - An instance of an Annotation sub-typeannotation - The existing annotation instanceAnnotations.Builder instance