public class AnnotationParameterValueList extends MappableInfoList<AnnotationParameterValue>
AnnotationParameterValue
objects.Constructor and Description |
---|
AnnotationParameterValueList()
Construct a new modifiable empty list of
AnnotationParameterValue objects. |
AnnotationParameterValueList(Collection<AnnotationParameterValue> annotationParameterValueCollection)
Construct a new modifiable empty
AnnotationParameterValueList , given an initial list of
AnnotationParameterValue objects. |
AnnotationParameterValueList(int sizeHint)
Construct a new modifiable empty list of
AnnotationParameterValue objects, given a size hint. |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element) |
boolean |
add(T element) |
boolean |
addAll(Collection<? extends T> c) |
boolean |
addAll(int index,
Collection<? extends T> c) |
void |
clear() |
static AnnotationParameterValueList |
emptyList()
Return an unmodifiable empty
AnnotationParameterValueList . |
Object |
getValue(String parameterName)
Get the annotation parameter value, by calling
AnnotationParameterValue.getValue() on the result of
MappableInfoList.get(String) , if non-null. |
Iterator<T> |
iterator() |
ListIterator<T> |
listIterator() |
T |
remove(int index) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
T |
set(int index,
T element) |
asMap, containsName, get
equals, getAsStrings, getAsStringsWithSimpleNames, getNames, hashCode
clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, lastIndexOf, listIterator, removeIf, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
containsAll, toString
containsAll
parallelStream, stream
public AnnotationParameterValueList()
AnnotationParameterValue
objects.public AnnotationParameterValueList(int sizeHint)
AnnotationParameterValue
objects, given a size hint.sizeHint
- the size hintpublic AnnotationParameterValueList(Collection<AnnotationParameterValue> annotationParameterValueCollection)
AnnotationParameterValueList
, given an initial list of
AnnotationParameterValue
objects.annotationParameterValueCollection
- the collection of AnnotationParameterValue
objects.public static AnnotationParameterValueList emptyList()
AnnotationParameterValueList
.AnnotationParameterValueList
.public Object getValue(String parameterName)
AnnotationParameterValue.getValue()
on the result of
MappableInfoList.get(String)
, if non-null.parameterName
- The name of an annotation parameter.AnnotationParameterValue
object in the list with the given name, by calling
AnnotationParameterValue.getValue()
on that object, or null if not found.
The annotation parameter value may be one of the following types:
Object
[] array for array types (and then the array element type may be
one of the types in this list)
AnnotationEnumValue
, for enum constants (this wraps the enum class and the string name of
the constant)
AnnotationClassRef
, for Class references within annotations (this wraps the name of the
referenced class)
AnnotationInfo
, for nested annotations
public boolean add(T element)
public void add(int index, T element)
public boolean remove(Object o)
public T remove(int index)
public boolean addAll(Collection<? extends T> c)
public boolean addAll(int index, Collection<? extends T> c)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public void clear()
public T set(int index, T element)
public Iterator<T> iterator()
public ListIterator<T> listIterator()
listIterator
in interface List<T>
listIterator
in class ArrayList<T>
Copyright © 2022. All rights reserved.