goldman.collection
Interface Tracked<E>

All Superinterfaces:
Collection<E>, Iterable<E>
All Known Implementing Classes:
BalancedBinarySearchTree, BinaryHeap, BinarySearchTree, CompactTrie, CompressedTrie, DoublyLinkedList, FibonacciHeap, KDTree, LeftistHeap, PairingHeap, PatriciaTrie, RedBlackTree, SinglyLinkedList, SkipList, SplayTree, TernarySearchTrie, TrackedArray, Trie

public interface Tracked<E>
extends Collection<E>

The Tracked interface adds a single method to the Collection interface that allows the user to obtain a tracker when an element is inserted.


Method Summary
 Locator<E> addTracked(E o)
          Inserts o into the collection in an arbitrary location and returns a tracker to the inserted element.
 
Methods inherited from interface goldman.collection.Collection
accept, add, addAll, checkRep, clear, contains, ensureCapacity, getCapacity, getComparator, getEquivalentElement, getLocator, getSize, isEmpty, iterator, remove, retainAll, toArray, toArray, toString, trimToSize
 

Method Detail

addTracked

Locator<E> addTracked(E o)
Inserts o into the collection in an arbitrary location and returns a tracker to the inserted element. An AtCapacityException (an unchecked exception) is thrown if the collection is already at capacity.