"Henning P. Schmiedehausen" <[EMAIL PROTECTED]> writes:
> As far as I can see, the Set does not gurantee the sequence of the
> keys. That's why I added a new method "keyList()". You still get
> keySet() inherited from the Hashtable.
The existing SequencedHashtable iterator() method provides this
functionality.
> In my application, I first used an Hashtable and an ArrayList in
> parallel which I replaced easily with the SequencedHashtable, once I
> added the keyList() method. I'm not that sure about keySet() and I
> really wanted access to the List to be sure about the sequence.
Will iterator() do the trick? If it does, can you suggest an
alternate name which would make its purpose more clear (so that users
need not scan the existing JavaDoc)? I was originally trying to avoid
providing direct access to the underlying List (but am not married to
the idea).
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]