19 package org.turro.financials.cart;
21 import java.io.Serializable;
22 import java.util.Iterator;
23 import java.util.TreeSet;
29 public class CartItemSet extends TreeSet<CartItem> implements Serializable {
42 Iterator<CartItem> it = iterator();
44 if(it.next().getOrder() == order) {
52 private void removeGarbage() {
53 Iterator<CartItem> it = iterator();
55 if(!(it.next().isValid())) {
61 private void reorder() {
63 for(CartItem ci :
this) {
boolean addItem(CartItem cartItem)
void removeItem(int order)