public void addTransaction(Object trans) { // if(!trans.getCustomer().toString().equals(this.toString())) // throw new IllegalStateException ("Transaction is not by this customer."); transactions.add(trans); }
public ListIterator getTransactions() { return transactions.iterator(); }