I have been playing very well with sparseArray
until today. Now it looks sparseArray will not repay my love :(
I have to maintain the order of my objects I am storing in a sparseArray
. There is only one method setValueAt
that don't allow to set the key. key
is important for me.
Tell me what is work around? Should I hack the source? Or If any one can help with a custom method which I can add in a custom sparseArray class of my own i.e I will code MySparseArray
inheriting from sparseArray
to add my that method. I need to add an object with a specific key at the last index or at the end of my sparseArray
.