You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mick Knutson <mi...@safeway.com> on 2005/11/17 19:40:48 UTC

[ot]Hashtable like fifo que?

I am trying to create a FIFO que that I can add items, then they fall
off like a standard FIFO, but, I want to be able to get an item from the
que like a Hashtable.

 

I.E. Object obj = fifoQue.get("stringKey");


"MMS <safeway.com>" made the following annotations.
------------------------------------------------------------------------------
Warning: 
All e-mail sent to this address will be received by the Safeway corporate e-mail system, and is subject to archival and review by someone other than the recipient.  This e-mail may contain information proprietary to Safeway and is intended only for the use of the intended recipient(s).  If the reader of this message is not the intended recipient(s), you are notified that you have received this message in error and that any review, dissemination, distribution or copying of this message is strictly prohibited.  If you have received this message in error, please notify the sender immediately. 
  
==============================================================================

Re: [ot]Hashtable like fifo que?

Posted by Dave Newton <ne...@pingsite.com>.
Hmm, weird formatting.

Dave Newton wrote:

> java.util.LinkedHashMap?

Probably doesn't do exactly what you want.

Seems like it'd be easy to wrap a HashMap and LinkedList inside a 
composite class, though.

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [ot]Hashtable like fifo que?

Posted by Dave Newton <ne...@pingsite.com>.
Mick Knutson wrote:

>I am trying to create a FIFO que that I can add items, then they fall
>off like a standard FIFO, but, I want to be able to get an item from the
>que like a Hashtable.
>
>I.E. Object obj = fifoQue.get("stringKey");
>  
>
*java.util.LinkedHashMap?

Dave
*




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org