T
- the element typepublic class InfoList<T extends HasName> extends ArrayList<T>
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() |
boolean |
equals(Object o) |
List<String> |
getAsStrings()
Get the String representations of all items in this list, by calling
toString() on each item in the
list. |
List<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. |
List<String> |
getNames()
Get the names of all items in this list, by calling
getName() on each item in the list. |
int |
hashCode() |
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) |
clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, lastIndexOf, listIterator, removeIf, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
containsAll, toString
containsAll
parallelStream, stream
public boolean equals(Object o)
public int hashCode()
public List<String> getNames()
getName()
on each item in the list.getName()
on each item in the list.public List<String> getAsStrings()
toString()
on each item in the
list.toString()
on each item in
the list.public List<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)
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.