Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
dx22
Posts: 402
Registered: ‎11-26-2010
My Device: Torch

Re: hashtable

The blue buttons to the right under each reply on the thread. There is also the kudos button. This way you will encourage other users to help you more in the future.
----------------------------------------------------------------------
Press the button to give kudos if I helped you :smileyhappy:
Please use plain text.
Developer
ahmadahmad
Posts: 404
Registered: ‎05-31-2011
My Device: curve
My Carrier: devel

Re: hashtable

ok, it's done right?

Please use plain text.
Developer
dx22
Posts: 402
Registered: ‎11-26-2010
My Device: Torch

Re: hashtable

Nope, its not. If its solved a greyish checked sign will appear on the thread in the main threads view.

Its funny how developers experience difficulties with this feature and the kudos feature and it happens often.
----------------------------------------------------------------------
Press the button to give kudos if I helped you :smileyhappy:
Please use plain text.
Developer
walkline
Posts: 82
Registered: ‎01-10-2013
My Device: Bold 9900
My Carrier: China Unicom

Re: hashtable

hi ekansh, is there any way to simply modify/update any values by the given keys? I'm using persistent object to store the StoreInfo class, when I update any values stored in this class, all of the values have to storing as a new element, I means and I think that the persistent object stored in flash memory will be more and more bigger

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: hashtable

If the Hashtable grows, then the Object stored grows.  if you delete entries in the Hashtable, then it shrinks.  When you persist the Hashtable, it will persist the current values in the Hashtable.  So I don't think there is a problem here is there?

Please use plain text.
Developer
walkline
Posts: 82
Registered: ‎01-10-2013
My Device: Bold 9900
My Carrier: China Unicom

Re: hashtable

You means that when the object stored grows, the last version of this object will be deleted automatically, is that true?

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: hashtable

There is only one version of the object....

 

Technically I understand that there are 'copies' that are used when persisting the object, but there is ony ever one visible one. 

Please use plain text.
Developer
walkline
Posts: 82
Registered: ‎01-10-2013
My Device: Bold 9900
My Carrier: China Unicom

Re: hashtable

Yes, I will try it

Please use plain text.