In my Android app, I use a SparseArray where I put data into it and immediate get it, sometimes the data is null

时间:2018-06-04 17:15:22

标签: java

I use a SparseArray mapping ints to Objects. I put the Objects into the SparseArray and immediately retrive them in a different method. However, occasionally this returns null. I want a method that will wait until the retrieved value is not null to retrieve it.

0 个答案:

没有答案