pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gk_br...@verizon.net>
Subject Re: HashMap issue
Date Fri, 01 Apr 2011 12:24:32 GMT
Ooh, that's a good one. rehash() should probably set a rehash flag and put() should ensure
that it is false before firing an event.

On Apr 1, 2011, at 8:19 AM, lello wrote:

> Hi all,
> 
> I am having a problem using pivot HashMap. Basically I have a class in which
> I store a HashMap&lt;string, object&gt; and  retrieve a List from the
> hashmap; the List is then displayed in a TableView.
> All the operations are performed on the HashMap, so I must update the List
> every time the hashmap is changed. I have implemented this simply using a
> MapListener, which pushes the changes to the map into the list. So far so
> good.
> The problem is, at some point the hashmap is rehashed and this triggers the
> MapListener which I don't want
> or I end up with a list which is all wrong. I might solve the problem by
> creating a hashmap with a very large capacity, so rehash is never called,
> but that's not really a solution.
> 
> Any help is appreciated.
> Lello
> 
> 
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/HashMap-issue-tp2763110p2763110.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.


Mime
View raw message