T - the type to save in this listpublic class ExtensibleList<T> extends Object
| 构造器和说明 |
|---|
ExtensibleList() |
ExtensibleList(ExtensibleList<T> original)
Creates a new extensible list.
|
| 限定符和类型 | 方法和说明 |
|---|---|
ExtensibleList<T> |
add(T add)
In case this list is locked, a new one is created and returned.
|
ExtensibleList<T> |
addAll(T... add) |
ExtensibleList<T> |
addFirstSlow(T toAdd)
Adds an element to the beginning.
|
boolean |
equals(Object obj) |
List<T> |
getActualList() |
T |
getFirstSlow()
Returns the first element.
|
T |
getLast()
Returns the last element
|
int |
hashCode() |
boolean |
isEmpty()
Returns true when this list is empty
|
Object |
removeLast()
Removes the last element and returns it Alternatively, it may return an
extensible list, in case the original one could not be changed!
|
soot.jimple.infoflow.util.extensiblelist.ExtensibleList.ExtensibleListIterator<T> |
reverseIterator()
Returns an iterator, which works reverse through the list
|
int |
size()
Returns the size of the list
|
String |
toString() |
public ExtensibleList(ExtensibleList<T> original)
original - the prepended listpublic ExtensibleList()
public int size()
public ExtensibleList<T> add(T add)
add - the object to addpublic ExtensibleList<T> addAll(T... add)
public boolean isEmpty()
public Object removeLast()
public soot.jimple.infoflow.util.extensiblelist.ExtensibleList.ExtensibleListIterator<T> reverseIterator()
public T getLast()
public T getFirstSlow()
public ExtensibleList<T> addFirstSlow(T toAdd)
toAdd - the element to addCopyright © 2022 Fraunhofer SIT. All rights reserved.