'Arraylist
'을 'Arraylist<Type>
'으로 변환하는 좀 더 우아한 해결책이 있습니까?형식이 지정되지 않은 Arraylist를 형식화 된 Arraylist로 변환
현재 코드 :이 본질적으로 안전하지 않은, 그래서 getProductsList 업데이트 할 수없는 경우에만 사용되어야한다는 것을
ArrayList productsArrayList=getProductsList();
ArrayList<ProductListBean> productList = new ArrayList<ProductListBean>();
for (Object item : productsArrayList)
{
ProductListBean product = (ProductListBean)item;
productList.add(product);
}