Serializable
, Cloneable
, Iterable<AnnotationInfo>
, Collection<AnnotationInfo>
, List<AnnotationInfo>
, RandomAccess
public class AnnotationInfoList extends ArrayList<AnnotationInfo>
AnnotationInfo
objects.Modifier and Type | Class | Description |
---|---|---|
static interface |
AnnotationInfoList.AnnotationInfoFilter |
Filter an
AnnotationInfoList using a predicate mapping an AnnotationInfo object to a boolean,
producing another AnnotationInfoList for all items in the list for which the predicate is true. |
modCount
Modifier and Type | Method | Description |
---|---|---|
boolean |
containsName(String annotationName) |
|
AnnotationInfoList |
filter(AnnotationInfoList.AnnotationInfoFilter filter) |
Find the subset of the
AnnotationInfo objects in this list for which the given filter predicate is
true. |
AnnotationInfo |
get(String annotationName) |
|
List<String> |
getAsStrings() |
|
List<String> |
getNames() |
containsAll, toString
equals, hashCode
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
parallelStream, stream
containsAll, equals, hashCode
public List<String> getNames()
AnnotationInfo.getName()
for each item
in the list.public List<String> getAsStrings()
AnnotationInfo.toString()
for each item in the list.public boolean containsName(String annotationName)
annotationName
- The fully-qualified class name of an annotation.public AnnotationInfo get(String annotationName)
annotationName
- The fully-qualified class name of an annotation.AnnotationInfo
object in the list with the given name, or null if not found.public AnnotationInfoList filter(AnnotationInfoList.AnnotationInfoFilter filter)
AnnotationInfo
objects in this list for which the given filter predicate is
true.filter
- The AnnotationInfoList.AnnotationInfoFilter
to apply.AnnotationInfo
objects in this list for which the given filter predicate is
true.Copyright © 2018. All rights reserved.