| soot.util.HashChain
All known Subclasses: soot.jimple.toolkits.thread.mhp.PegChain, soot.util.IterableSet,
HashChain | public class HashChain extends AbstractCollection implements Chain<E>(Code) | | Reference implementation of the Chain interface,
using a HashMap as the underlying structure.
|
Inner Class :class LinkIterator implements Iterator | |
Constructor Summary | |
public | HashChain() Constructs an empty HashChain. |
Method Summary | |
public boolean | add(E item) Adds the given object to this HashChain. | public void | addFirst(E item) | public void | addLast(E item) | public void | clear() Erases the contents of the current HashChain. | public boolean | contains(Object o) | public boolean | containsAll(Collection c) | public boolean | follows(E someObject, E someReferenceObject) | public E | getFirst() | public E | getLast() | public E | getPredOf(E point) | public E | getSuccOf(E point) | public void | insertAfter(E toInsert, E point) | public void | insertAfter(List<E> toInsert, E point) | public void | insertAfter(Chain<E> toInsert, E point) | public void | insertBefore(E toInsert, E point) | public void | insertBefore(List<E> toInsert, E point) | public void | insertBefore(Chain<E> toInsert, E point) | public Iterator<E> | iterator() | public Iterator<E> | iterator(E item) | public Iterator<E> | iterator(E head, E tail) Returns an iterator ranging from head to
tail , inclusive.
If tail is the element immediately preceding
head in this HashChain , the returned
iterator will iterate 0 times (a special case to allow the
specification of an empty range of elements). | public static HashChain | listToHashChain(List list) | public boolean | remove(Object item) | public void | removeFirst() | public void | removeLast() | public int | size() | public Iterator<E> | snapshotIterator() | public Iterator<E> | snapshotIterator(Object item) | public void | swapWith(E out, E in) | public static List | toList(Chain c) Returns an unbacked list containing the contents of the given Chain. | public String | toString() Returns a textual representation of the contents of this Chain. |
HashChain | public HashChain()(Code) | | Constructs an empty HashChain.
|
add | public boolean add(E item)(Code) | | Adds the given object to this HashChain.
|
addFirst | public void addFirst(E item)(Code) | | |
addLast | public void addLast(E item)(Code) | | |
clear | public void clear()(Code) | | Erases the contents of the current HashChain.
|
follows | public boolean follows(E someObject, E someReferenceObject)(Code) | | |
getFirst | public E getFirst()(Code) | | |
getLast | public E getLast()(Code) | | |
insertAfter | public void insertAfter(E toInsert, E point)(Code) | | |
insertAfter | public void insertAfter(List<E> toInsert, E point)(Code) | | |
insertAfter | public void insertAfter(Chain<E> toInsert, E point)(Code) | | |
insertBefore | public void insertBefore(E toInsert, E point)(Code) | | |
insertBefore | public void insertBefore(List<E> toInsert, E point)(Code) | | |
insertBefore | public void insertBefore(Chain<E> toInsert, E point)(Code) | | |
iterator | public Iterator<E> iterator(E head, E tail)(Code) | | Returns an iterator ranging from head to
tail , inclusive.
If tail is the element immediately preceding
head in this HashChain , the returned
iterator will iterate 0 times (a special case to allow the
specification of an empty range of elements). Otherwise if
tail is not one of the elements following
head , the returned iterator will iterate past the
end of the HashChain , provoking a
NoSuchElementException .
throws: NoSuchElementException - if head is notan element of the chain. |
removeFirst | public void removeFirst()(Code) | | |
removeLast | public void removeLast()(Code) | | |
swapWith | public void swapWith(E out, E in)(Code) | | |
toList | public static List toList(Chain c)(Code) | | Returns an unbacked list containing the contents of the given Chain.
|
toString | public String toString()(Code) | | Returns a textual representation of the contents of this Chain.
|
|
|