goldman.collection.tagged
Interface TrackedTagged<T,E>

All Superinterfaces:
Iterable<TaggedElement<T,E>>, TaggedCollection<T,E>
All Known Implementing Classes:
TaggedBinarySearchTree, TaggedBPlusTree, TaggedBTree, TaggedCompactTrie, TaggedCompressedTrie, TaggedDigitizedOrderedCollectionWrapper, TaggedOrderedCollectionWrapper, TaggedPatriciaTrie, TaggedRedBlackTree, TaggedSkipList, TaggedSortedArray, TaggedSplayTree, TaggedTernarySearchTrie, TaggedTrie

public interface TrackedTagged<T,E>
extends TaggedCollection<T,E>

Similar to the Tagged interface, the TrackedTagged interface includes a method to insert a tagged element into a tagged collection that returns a tracker for it.


Method Summary
 Locator<TaggedElement<T,E>> putTracked(T tag, E element)
          This method creates a new tagged element for the given tag and element, and inserts it into this collection.
 
Methods inherited from interface goldman.collection.tagged.TaggedCollection
accept, clear, contains, elements, ensureCapacity, get, getCapacity, getLocator, getSize, isEmpty, iterator, put, putAll, remove, tags, toString, trimToSize, values
 

Method Detail

putTracked

Locator<TaggedElement<T,E>> putTracked(T tag,
                                       E element)
This method creates a new tagged element for the given tag and element, and inserts it into this collection. A locator that tracks the new tagged element is returned. An AtCapacityException, an unchecked exception, is thrown if the collection is already at capacity.