public MyList<ReceiptPO> getAll() { MyList<ReceiptPO> re = new MyList<ReceiptPO>(); ArrayList<String> strs = dh.read(); for (String string : strs) { re.add(new ReceiptPO(string)); } return re; }
public MyList<ReceiptPO> getAll(String w) throws RemoteException { MyList<ReceiptPO> re = new MyList<ReceiptPO>(); ArrayList<String> strs = dh.read(); for (String string : strs) { ReceiptPO po = (new ReceiptPO(string)); if (po.getWriter().equals(w)) { re.add(po); } } return re; }
public MyList<ReceiptPO> getAllBySatte(State state) throws RemoteException { MyList<ReceiptPO> re = new MyList<ReceiptPO>(); ArrayList<String> strs = dh.read(); for (String string : strs) { ReceiptPO temp = new ReceiptPO(string); if (temp.getState() == state) { re.add(temp); } } return re; }