예제 #1
0
  public void addTransaction(Object trans) {
    // if(!trans.getCustomer().toString().equals(this.toString()))
    //		throw new IllegalStateException ("Transaction is not by this customer.");

    transactions.add(trans);
  }
예제 #2
0
 public ListIterator getTransactions() {
   return transactions.iterator();
 }