private ArrayList getArrayList(Object obj) { ArrayList<CorrespondenceStatusVo> list = new ArrayList<CorrespondenceStatusVo>(); if (obj instanceof CorrespondenceStatusVoCollection) { CorrespondenceStatusVoCollection coll = (CorrespondenceStatusVoCollection)obj; for (int i = 0; i < coll.size(); i++) { list.add(coll.get(i)); } } return list; }
private void copyArrayListIntoColl(Object obj, ArrayList collActions) { if (obj instanceof CorrespondenceStatusVoCollection) { CorrespondenceStatusVoCollection coll = (CorrespondenceStatusVoCollection)obj; coll.clear(); for (int i = 0; collActions != null && i < collActions.size(); i++) { coll.add((CorrespondenceStatusVo)collActions.get(i)); } } }