Package io.github.fastclasspathscanner
Class AnnotationInfoList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<AnnotationInfo>
-
- io.github.fastclasspathscanner.AnnotationInfoList
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<AnnotationInfo>,Collection<AnnotationInfo>,List<AnnotationInfo>,RandomAccess
public class AnnotationInfoList extends ArrayList<AnnotationInfo>
A list ofAnnotationInfoobjects.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAnnotationInfoList.AnnotationInfoFilterFilter anAnnotationInfoListusing a predicate mapping anAnnotationInfoobject to a boolean, producing anotherAnnotationInfoListfor all items in the list for which the predicate is true.
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description AnnotationInfoList()AnnotationInfoList(int sizeHint)AnnotationInfoList(Collection<AnnotationInfo> annotationInfoCollection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsName(String annotationName)Return true if this list contains the annotation with the given name.AnnotationInfoListfilter(AnnotationInfoList.AnnotationInfoFilter filter)Find the subset of theAnnotationInfoobjects in this list for which the given filter predicate is true.AnnotationInfoget(String annotationName)Return theAnnotationInfoobject in the list with the given name, or null if not found.List<String>getAsStrings()Get the string representations of all annotations in this list (with meta-annotations, etc.), by callingAnnotationInfo.toString()on each item in the list.List<String>getNames()Get the names of all annotations in this list.-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.util.AbstractList
equals, hashCode
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from interface java.util.Collection
parallelStream, stream
-
Methods inherited from interface java.util.List
containsAll, equals, hashCode
-
-
-
-
Constructor Detail
-
AnnotationInfoList
public AnnotationInfoList()
-
AnnotationInfoList
public AnnotationInfoList(int sizeHint)
-
AnnotationInfoList
public AnnotationInfoList(Collection<AnnotationInfo> annotationInfoCollection)
-
-
Method Detail
-
getAsStrings
public List<String> getAsStrings()
Get the string representations of all annotations in this list (with meta-annotations, etc.), by callingAnnotationInfo.toString()on each item in the list.
-
containsName
public boolean containsName(String annotationName)
Return true if this list contains the annotation with the given name.
-
get
public AnnotationInfo get(String annotationName)
Return theAnnotationInfoobject in the list with the given name, or null if not found.
-
filter
public AnnotationInfoList filter(AnnotationInfoList.AnnotationInfoFilter filter)
Find the subset of theAnnotationInfoobjects in this list for which the given filter predicate is true.- Parameters:
filter- TheAnnotationInfoList.AnnotationInfoFilterto apply.- Returns:
- The subset of the
AnnotationInfoobjects in this list for which the given filter predicate is true.
-
-