--- Daniel Rall <[EMAIL PROTECTED]> wrote:
> > What is SequencedHashtable used for?
>
> It keeps track of the order in which elements are added to a
> Hashtable.
>
> > If so, why not use TreeMap which implements the SortedMap
> interface?
>
> SequencedHashtable and BufferCache predate Commons Collections.
>
> > Or is just a different implementation ?
>
> I'm not familiar with the implementation of TreeMap. I'm hoping to
> become more familiar with it Really Soon.
TreeMap is part of Sun's Collections, not Commons Collections and,
according to your description, does exactly what SequencedHashtable
does.
TreeMap uses a Red-Black tree to keep the keys of the map in order,
either according to their natural order or according to a given
Comparator.
See http://java.sun.com/j2se/1.3/docs/api/java/util/TreeMap.html
- Chuck
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com