Tuesday, May 14, 2013

Re: [android-developers] Custom Base Adapter.

bob wrote:
It sounds like he may want to call Collections.sort() on the backing collection.  Probably a Vector.


Why do you say "probably" a 'Vector'? The standard Android classes that use a collection include 
http://developer.android.com/reference/android/widget/SimpleAdapter.html
that uses 'ArrayList', not 'Vector'. I was not able in a brief search to find anything in the Android docs 
that would lead a person to use 'Vector'.

It is striking to me how much pernicious life the 'Vector' class has even fifteen years after it was declared obsolete.

Ditto 'Hashtable' but somewhat less so.

-- 
Lew
 

--
--
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
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate