Class AnnotationList.ForLoadedAnnotations
java.lang.Object
java.util.AbstractCollection<AnnotationDescription>
java.util.AbstractList<AnnotationDescription>
net.bytebuddy.matcher.FilterableList.AbstractBase<AnnotationDescription, AnnotationList>
net.bytebuddy.description.annotation.AnnotationList.AbstractBase
net.bytebuddy.description.annotation.AnnotationList.ForLoadedAnnotations
- All Implemented Interfaces:
Iterable<AnnotationDescription>, Collection<AnnotationDescription>, List<AnnotationDescription>, SequencedCollection<AnnotationDescription>, AnnotationList, FilterableList<AnnotationDescription, AnnotationList>
- Enclosing interface:
AnnotationList
Describes an array of loaded
Annotations as an annotation list.-
Nested Class Summary
Nested classes/interfaces inherited from interface AnnotationList
AnnotationList.AbstractBase, AnnotationList.Empty, AnnotationList.Explicit, AnnotationList.ForLoadedAnnotationsNested classes/interfaces inherited from interface FilterableList
FilterableList.AbstractBase<T,S>, FilterableList.Empty<T, S> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<? extends Annotation> The represented annotations.Fields inherited from class AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionForLoadedAnnotations(Annotation... annotation) Creates a new list of loaded annotations.ForLoadedAnnotations(List<? extends Annotation> annotations) Creates a new list of loaded annotations. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<AnnotationList> asList(Annotation[][] annotations) Creates a list of annotation lists representing the given loaded annotations.get(int index) intsize()Methods inherited from class AnnotationList.AbstractBase
asTypeList, asTypeNames, inherited, isAnnotationPresent, isAnnotationPresent, ofType, ofType, visibility, wrapMethods inherited from class FilterableList.AbstractBase
filter, getOnly, subListMethods inherited from class AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, setMethods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface FilterableList
filter, getOnly, subListMethods inherited from interface List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, sort, spliterator, toArray, toArray
-
Field Details
-
annotations
The represented annotations.
-
-
Constructor Details
-
ForLoadedAnnotations
Creates a new list of loaded annotations.- Parameters:
annotation- The represented annotations.
-
ForLoadedAnnotations
Creates a new list of loaded annotations.- Parameters:
annotations- The represented annotations.
-
-
Method Details
-
asList
Creates a list of annotation lists representing the given loaded annotations.- Parameters:
annotations- The annotations to represent where each dimension is converted into a list.- Returns:
- A list of annotation lists representing the given annotations.
-
get
- Specified by:
getin interfaceList<AnnotationDescription>- Specified by:
getin classAbstractList<AnnotationDescription>
-
size
public int size()- Specified by:
sizein interfaceCollection<AnnotationDescription>- Specified by:
sizein interfaceList<AnnotationDescription>- Specified by:
sizein classAbstractCollection<AnnotationDescription>
-