org.aspectbench.tm.runtime.internal
Interface IndexTreeLeaf

All Superinterfaces:
java.util.Collection, java.lang.Iterable, java.util.Set, WeakRefContainer
All Known Implementing Classes:
IndexTreeLeafSet

public interface IndexTreeLeaf
extends java.util.Set, WeakRefContainer

An interface for the leaves of an IndexTree. Essentially, they're sets of ITDBindings, and thus conform to the Set interface. The main differences are that only weak references are kept to the elements of the set, and that a cleanup() function is provided to drop the set from an IndexTree if it's empty, and recurse up the branch.

Author:
pavel

Method Summary
 void cleanup()
          Check whether this set is empty; if so, recurse up the IndexTree dropping empty branches.
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface org.aspectbench.tm.runtime.internal.WeakRefContainer
weakrefExpired
 

Method Detail

cleanup

void cleanup()
Check whether this set is empty; if so, recurse up the IndexTree dropping empty branches.