Author: doogie
Date: Tue Mar 9 19:59:09 2010
New Revision: 921090
URL:
http://svn.apache.org/viewvc?rev=921090&view=revLog:
Implement Iterable<ShoppingCartItem>.
Modified:
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java
Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java?rev=921090&r1=921089&r2=921090&view=diff==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java Tue Mar 9 19:59:09 2010
@@ -51,7 +51,7 @@ import java.util.*;
/**
* Shopping Cart Object
*/
-public class ShoppingCart implements Serializable {
+public class ShoppingCart implements Iterable<ShoppingCartItem>, Serializable {
public static final String module = ShoppingCart.class.getName();
public static final String resource_error = "OrderErrorUiLabels";
@@ -907,7 +907,7 @@ public class ShoppingCart implements Ser
}
/** Returns an iterator of cart items. */
- public Iterator iterator() {
+ public Iterator<ShoppingCartItem> iterator() {
return cartLines.iterator();
}