Hi Otis

There's already a Queue interface and implementations in the threading
project in Jakarta Commons, you might want to compare your interfaces with
the one there and see if there's overlap.

http://jakarta.apache.org/cvsweb/index.cgi/jakarta-commons-sandbox/threading
/

It might be that the threading project might be a better home for some of
your Queue implementations or it might make sense to add it to the
collections project. (The Queue in the threading project is thread aware and
allows blocking or non blocking access via multiple threads).

I'm not sure what the BoundHashMap is - is that a fixed size HashMap or one
which takes a range of keys?

James

From: "Otis Gospodnetic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 19, 2001 5:53 PM
Subject: A few collections for Jakarta Commons (was: Re: one-to-many
Container)


> Hello,
>
> Well, I have a few things that may then be suitable
> for Jakarta Commons collections. Here is a list of
> classes from my 'ADT dir'. You should be able to guess
> the functionality from the name. If you can't figure
> it out, then I gave them poor names.
>
> BoundHashMap.java
> BoundHashMapFullException.java
> BoundLinkedListQueue.java
> BoundLinkedListQueueException.java
> CircularArrayQueue.java
> CircularArrayQueueException.java
> LinkedListQueue.java
> Queue.java (this is just an interface)
> QueueException.java
> UniqueBoundLinkedListQueue.java
> UniqueLinkedListQueue.java
>
> If those are suitable for Jakarta Commons collections
> please let me know how to get them in there, or who to
> send them to.
>
> Otis
>
> --- James Strachan <[EMAIL PROTECTED]> wrote:
> > From: "Otis Gospodnetic"
> > <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, June 19, 2001 5:29 PM
> > Subject: Re: one-to-many Container
> >
> >
> > > Couldn't you just store values for a single key in
> > a
> > > list (ArrayList, LinkedList, Vector)?
> > > Extend HashMap and write your own
> > put(Object,Object)
> > > method that knows how to add to the existing list
> > for
> > > existing key, or create a new list for a new key
> > being
> > > put in the HashMap.
> >
> > This sounds like a good possible addition to the
> > Jakarta collections project
> > ;-)
> >
> > You might also want to change the implementation of
> > values() so that you
> > could iterate through all logical values in the Map
> > as one flat collection.
> >
> > James
>
>
> __________________________________________________
> Do You Yahoo!?
> Spot the hottest trends in music, movies, and more.
> http://buzz.yahoo.com/


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to