English 中文(简体)
黑莓地图
原标题:blackberry hashmap

等于

LinkedHashMap < String, String > postMap = 
    new LinkedHashMap < String, String >();

for Java 1.4 for Blackberry? I am trying to make a hashmap

问题回答

Try

There is no equivalent. Some additional collections-related classes are in net.rim.device.api.util, but nothing like hash map with predictable traversion order. Depending on a task, you might be better off with just a Vector - if there are only couple of dozen entries. Memory is kind of more precious than CPU on BB. If performance is unacceptable, then simply put a wrapper around Hashtable and store own class with class MyEntry { String key; String value; MyEntry prev,next; } as values.





相关问题
How does AlertListener work on Blackberry API 5.0?

Does the AlertListener interface works globally on all alerts on the blackberry device, or does it only work with alerts generated by your application? In other words, can I use this interface to ...

How to buffer audio in Blackberry?

I need to learn how to buffer audio stream from a remote server in Blackberry. There is a sample buffered playback app with Blackberry api but can you tell what url may I use to test the application?

Blackberry push notification implementation

How does one implement a push notification for a blackberry app? I heard that in order to do so I need to purchase a Blackberry Enterprise Server which costs me 1400 per year. Is this true? Where is ...

热门标签