Method Summary |
|
public boolean | add(E o) Adds the given object to this Chain. |
public void | addFirst(E u) Adds the given object at the beginning of the Chain. |
public void | addLast(E u) Adds the given object at the end of the Chain. |
public boolean | contains(Object u) Returns true if this patching chain contains the specified element. |
public boolean | follows(E a, E b) Returns true if object a follows object b in the Chain. |
public E | getFirst() Returns the first object in this Chain. |
public E | getLast() Returns the last object in this Chain. |
public Chain<E> | getNonPatchingChain() Returns the inner chain used by the PatchingChain. |
public E | getPredOf(E point) Returns the object immediately preceding point . |
public E | getSuccOf(E point) Returns the object immediately following point . |
public void | insertAfter(E toInsert, E point) Inserts toInsert in the Chain after point . |
public void | insertAfter(List<E> toInsert, E point) Inserts toInsert in the Chain after point . |
public void | insertAfter(Chain<E> toInsert, E point) |
public void | insertBefore(List<E> toInsert, E point) Inserts toInsert in the Chain before point . |
public void | insertBefore(Chain<E> toInsert, E point) Inserts toInsert in the Chain before point . |
public void | insertBefore(E toInsert, E point) Inserts toInsert in the Chain before point . |
public void | insertBeforeNoRedirect(E toInsert, E point) Inserts toInsert in the Chain before point WITHOUT redirecting jumps. |
public Iterator<E> | iterator() Returns an iterator over this Chain. |
public Iterator<E> | iterator(E u) Returns an iterator over this Chain, starting at the given object. |
public Iterator<E> | iterator(E head, E tail) Returns an iterator over this Chain, starting at head and reaching tail (inclusive). |
public boolean | remove(Object obj) Removes the given object from this Chain. |
public void | removeFirst() Removes the first object from this Chain. |
public void | removeLast() Removes the last object from this Chain. |
public int | size() Returns the size of this Chain. |
public Iterator<E> | snapshotIterator() Returns an iterator over a copy of this chain. |
public void | swapWith(E out, E in) Replaces out in the Chain by in . |