Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #18448
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | markspace <-@.> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Question about HashMap and Map.Entry ... |
| Date | Thu, 30 Aug 2012 14:30:13 -0700 |
| Organization | A noiseless patient Spider |
| Lines | 34 |
| Message-ID | <k1om18$vvu$1@dont-email.me> (permalink) |
| References | <slrnk3v9ba.u9l.avl@gamma.logic.tuwien.ac.at> <k1o8uk$7m5$1@dont-email.me> <35O%r.171$_I7.84@newsfe20.iad> <slrnk3vff3.u9l.avl@gamma.logic.tuwien.ac.at> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Thu, 30 Aug 2012 21:30:17 +0000 (UTC) |
| Injection-Info | mx04.eternal-september.org; posting-host="61282af8d6595e8d991edb5ac03d6e00"; logging-data="32766"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Tl7wBC7JUlt8EUY511mROdOxI6rGIV2w=" |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0 |
| In-Reply-To | <slrnk3vff3.u9l.avl@gamma.logic.tuwien.ac.at> |
| Cancel-Lock | sha1:B+LgdxZZlamSPuoocFGy77b7RRU= |
| Xref | csiph.com comp.lang.java.programmer:18448 |
Show key headers only | View raw
On 8/30/2012 12:24 PM, Andreas Leitgeb wrote: > Daniel Pitts <newsgroup.nospam@virtualinfinity.net> wrote: >> On 8/30/12 10:46 AM, markspace wrote: >>> On 8/30/2012 10:39 AM, Andreas Leitgeb wrote: >>>> What I'm missing, however, is: >>>> How would I get the Entry for a given key? >>> What about: [...] I think that's what you said you are doing. > You thought essentially right, markspace ;-) > OK... > > Let's say, I've got a method that takes an Map.Entry, and > the new value, and it updates the Entry's value accordingly. > ... > > Now, I'd rather call that method for specific keys, and > that's how I'd arrive at the outset of this thread. I think Lew has the correct analysis. I was going more on gut instinct rather than analyzing carefully, but I don't see what is better, or more clear, or more desirable about your method, compared to the code I posted. I think it would help if you actually posted your code. I really can't fathom the use case for this, and English prose descriptions aren't helping. I can barely understand what it is you are doing to implement this. The "why" of it is completely beyond me. Maybe some code will spark some kind of idea for improvement....
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Question about HashMap and Map.Entry ... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-08-30 17:39 +0000
Re: Question about HashMap and Map.Entry ... markspace <-@.> - 2012-08-30 10:46 -0700
Re: Question about HashMap and Map.Entry ... Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-08-30 11:15 -0700
Re: Question about HashMap and Map.Entry ... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-08-30 19:24 +0000
Re: Question about HashMap and Map.Entry ... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-08-30 19:32 +0000
Re: Question about HashMap and Map.Entry ... Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-08-30 13:08 -0700
Re: Question about HashMap and Map.Entry ... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-08-30 21:55 +0000
Re: Question about HashMap and Map.Entry ... Robert Klemme <shortcutter@googlemail.com> - 2012-08-31 07:27 +0200
Re: Question about HashMap and Map.Entry ... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-08-31 10:26 +0000
Re: Question about HashMap and Map.Entry ... Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-08-31 11:22 -0700
Re: Question about HashMap and Map.Entry ... Robert Klemme <shortcutter@googlemail.com> - 2012-09-01 11:06 +0200
Re: Question about HashMap and Map.Entry ... markspace <-@.> - 2012-08-30 14:30 -0700
Re: Question about HashMap and Map.Entry ... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-08-30 22:42 +0000
Re: Question about HashMap and Map.Entry ... markspace <-@.> - 2012-08-30 14:34 -0700
Re: Question about HashMap and Map.Entry ... Lew <lewbloch@gmail.com> - 2012-08-30 13:42 -0700
Re: Question about HashMap and Map.Entry ... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-08-30 22:34 +0000
csiph-web