Select object from ARRAYLIST WITHOUT LOOP - ANDROID

后端 未结 3 1208
眼角桃花
眼角桃花 2021-01-24 22:31

I am looking for a library which can select object from ArrayList like SQL \"where\" command.

I have huge arraylists (between 2000 and 20000) in my project and i don\'t

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-24 23:07

    If you can use xpresso, you can write:

    list sortedSales = x.list(x.sorted(sales, x.invoke("getCost")));
    

    (I am the author of xpresso)

提交回复
热议问题