Hi,

HashMap is a very useful class that performs well. Without knowing how
you intend to use this class, we cannot really tell you whether it
will impact performance or not. However, HashMap can be used without
any problem in a large number of situations without impacting
performance.

The only situation in which you might want to avoid HashMap is if you
need to store primitive types (int, long, short, etc.) inside, either
as key or value. This will force you to use autoboxing which will
create new objects (Integer, Long, Short, etc.). In such a situation,
you might want to use a SparseArray instead.

On Thu, Jun 26, 2008 at 7:25 PM, Daniel <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> I did not develop mobile project before, and now I must to develop an
> Android project.
>
> From my friend, I have known the classes J2ME is less than J2SE. For
> example, J2ME doesn't contain HashMap class.
>
> I think it is under the consideration of performing.
>
> I just want to know if I use some classes, which aren't included in
> J2ME, can it have great influence on performin.
>
> Thanks
> Daniel
>
> >
>



-- 
Romain Guy
www.curious-creature.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to