Class AnnotationList.Explicit
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- net.bytebuddy.matcher.FilterableList.AbstractBase<AnnotationDescription,AnnotationList>
-
- net.bytebuddy.description.annotation.AnnotationList.AbstractBase
-
- net.bytebuddy.description.annotation.AnnotationList.Explicit
-
- All Implemented Interfaces:
java.lang.Iterable<AnnotationDescription>
,java.util.Collection<AnnotationDescription>
,java.util.List<AnnotationDescription>
,AnnotationList
,FilterableList<AnnotationDescription,AnnotationList>
- Enclosing interface:
- AnnotationList
public static class AnnotationList.Explicit extends AnnotationList.AbstractBase
Represents a list of explicitly provided annotation descriptions.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationList
AnnotationList.AbstractBase, AnnotationList.Empty, AnnotationList.Explicit, AnnotationList.ForLoadedAnnotations
-
Nested classes/interfaces inherited from interface net.bytebuddy.matcher.FilterableList
FilterableList.AbstractBase<T,S extends FilterableList<T,S>>, FilterableList.Empty<T,S extends FilterableList<T,S>>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<? extends AnnotationDescription>
annotationDescriptions
The list of represented annotation descriptions.
-
Constructor Summary
Constructors Constructor Description Explicit(java.util.List<? extends AnnotationDescription> annotationDescriptions)
Creates a new list of annotation descriptions.Explicit(AnnotationDescription... annotationDescription)
Creates a new list of annotation descriptions.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.List<AnnotationList>
asList(java.util.List<? extends java.util.List<? extends AnnotationDescription>> annotations)
Creates a list of annotation lists for a given multidimensional list of annotation descriptions.AnnotationDescription
get(int index)
int
size()
-
Methods inherited from class net.bytebuddy.description.annotation.AnnotationList.AbstractBase
asTypeList, inherited, isAnnotationPresent, isAnnotationPresent, ofType, ofType, visibility, wrap
-
Methods inherited from class net.bytebuddy.matcher.FilterableList.AbstractBase
filter, getOnly, subList
-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.matcher.FilterableList
filter, getOnly, subList
-
-
-
-
Field Detail
-
annotationDescriptions
private final java.util.List<? extends AnnotationDescription> annotationDescriptions
The list of represented annotation descriptions.
-
-
Constructor Detail
-
Explicit
public Explicit(AnnotationDescription... annotationDescription)
Creates a new list of annotation descriptions.- Parameters:
annotationDescription
- The list of represented annotation descriptions.
-
Explicit
public Explicit(java.util.List<? extends AnnotationDescription> annotationDescriptions)
Creates a new list of annotation descriptions.- Parameters:
annotationDescriptions
- The list of represented annotation descriptions.
-
-
Method Detail
-
asList
public static java.util.List<AnnotationList> asList(java.util.List<? extends java.util.List<? extends AnnotationDescription>> annotations)
Creates a list of annotation lists for a given multidimensional list of annotation descriptions.- Parameters:
annotations
- The list of annotations to represent as a list of annotation lists.- Returns:
- The list of annotation lists.
-
get
public AnnotationDescription get(int index)
- Specified by:
get
in interfacejava.util.List<AnnotationDescription>
- Specified by:
get
in classjava.util.AbstractList<AnnotationDescription>
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<AnnotationDescription>
- Specified by:
size
in interfacejava.util.List<AnnotationDescription>
- Specified by:
size
in classjava.util.AbstractCollection<AnnotationDescription>
-
-