例如,如果我有以下内容:
或者另一种方法是使用。
我该如何在Android Java中获取它?
ArrayList<Product> productlist = new ArrayList<Product> ();
如何获取所有产品,其中product.code
等于1和2?
是否有可以使用的库?
在C#中,我可以使用
productlist.where(product=> product.code.contains(arraywithproductcode)).ToList();
或者另一种方法是使用。
var newlist=(from p in productlist join a in arraywithproduct on a.product equals a select p);
我该如何在Android Java中获取它?