reilly.com/catalog/9780596529321/index.html">Programming Collective Intelligence," by Toby Segaran.
The "porting" part probably wasn't necessary, but I wanted to preserve Mr. Segaran's organization.
Note: the default implementation uses Javolution, for speed. There are special cases in the classifiers that will change iteration behavior if the Fast* collections are used.
Modified to include better pattern matching (thanks, Kevin!).
This was superfastical, yielding 36 misses over 2146 items.
That's a 98.32% hit, and at 5657ms, it's 2.68 ms per item.
@author
Joseph B. Ottinger
@version $Revision: 36 $