T - the element typepublic class InfoList<T extends HasName>
extends java.util.ArrayList<T>
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T element) |
boolean |
add(T element) |
boolean |
addAll(java.util.Collection<? extends T> c) |
boolean |
addAll(int index,
java.util.Collection<? extends T> c) |
void |
clear() |
boolean |
equals(java.lang.Object o) |
java.util.List<java.lang.String> |
getAsStrings()
Get the String representations of all items in this list, by calling
toString() on each item in the
list. |
java.util.List<java.lang.String> |
getAsStringsWithSimpleNames()
Get the String representations of all items in this list, using only simple
names of any named classes, by calling
ScanResultObject#toStringWithSimpleNames() if the object
is a subclass of ScanResultObject (e.g. |
java.util.List<java.lang.String> |
getNames()
Get the names of all items in this list, by calling
getName() on each item in the list. |
int |
hashCode() |
java.util.Iterator<T> |
iterator() |
java.util.ListIterator<T> |
listIterator() |
T |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
T |
set(int index,
T element) |
clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, lastIndexOf, listIterator, removeIf, removeRange, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic boolean equals(java.lang.Object o)
public int hashCode()
public java.util.List<java.lang.String> getNames()
getName() on each item in the list.getName() on each item in the list.public java.util.List<java.lang.String> getAsStrings()
toString() on each item in the
list.toString() on each item in
the list.public java.util.List<java.lang.String> getAsStringsWithSimpleNames()
ScanResultObject#toStringWithSimpleNames() if the object
is a subclass of ScanResultObject (e.g. ClassInfo, MethodInfo or FieldInfo
object), otherwise calling toString(), for each item in the list.public boolean add(T element)
add in interface java.util.Collection<T>add in interface java.util.List<T>add in class java.util.ArrayList<T>public void add(int index,
T element)
add in interface java.util.List<T>add in class java.util.ArrayList<T>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<T>remove in interface java.util.List<T>remove in class java.util.ArrayList<T>public T remove(int index)
remove in interface java.util.List<T>remove in class java.util.ArrayList<T>public boolean addAll(java.util.Collection<? extends T> c)
addAll in interface java.util.Collection<T>addAll in interface java.util.List<T>addAll in class java.util.ArrayList<T>public boolean addAll(int index,
java.util.Collection<? extends T> c)
addAll in interface java.util.List<T>addAll in class java.util.ArrayList<T>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<T>removeAll in interface java.util.List<T>removeAll in class java.util.ArrayList<T>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<T>retainAll in interface java.util.List<T>retainAll in class java.util.ArrayList<T>public void clear()
clear in interface java.util.Collection<T>clear in interface java.util.List<T>clear in class java.util.ArrayList<T>public T set(int index,
T element)
set in interface java.util.List<T>set in class java.util.ArrayList<T>public java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T>iterator in interface java.util.Collection<T>iterator in interface java.util.List<T>iterator in class java.util.ArrayList<T>public java.util.ListIterator<T> listIterator()
listIterator in interface java.util.List<T>listIterator in class java.util.ArrayList<T>