Package io.github.classgraph
Class AnnotationParameterValueList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<AnnotationParameterValue>
-
- io.github.classgraph.AnnotationParameterValueList
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<AnnotationParameterValue>
,Collection<AnnotationParameterValue>
,List<AnnotationParameterValue>
,RandomAccess
public class AnnotationParameterValueList extends ArrayList<AnnotationParameterValue>
A list ofAnnotationParameterValue
objects.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,AnnotationParameterValue>
asMap()
boolean
containsName(String parameterName)
Object
get(String parameterName)
List<String>
getAsStrings()
List<String>
getNames()
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Method Detail
-
getNames
public List<String> getNames()
- Returns:
- The names of all
AnnotationParameterValue
objects in this list, by callingAnnotationParameterValue.getName()
for each item in the list.
-
getAsStrings
public List<String> getAsStrings()
- Returns:
- The string representations of all annotation parameter values in this list, by calling
AnnotationParameterValue.toString()
for each item in the list.
-
asMap
public Map<String,AnnotationParameterValue> asMap()
- Returns:
- This
AnnotationParameterValueList
as a map from annotation parameter name toAnnotationParameterValue
object.
-
containsName
public boolean containsName(String parameterName)
- Parameters:
parameterName
- The name of an annotation parameter.- Returns:
- true if this list contains an annotation parameter with the given name.
-
get
public Object get(String parameterName)
- Parameters:
parameterName
- The name of an annotation parameter.- Returns:
- The value of the
AnnotationParameterValue
object in the list with the given name, or null if not found.
-
-