File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 44 */
55package coreapi ;
66
7+ import java .math .BigDecimal ;
78import java .util .Date ;
89import java .util .List ;
910import java .util .Map ;
@@ -14,8 +15,9 @@ public interface Order {
1415 * Returns the combined cost of the whole order.
1516 * Takes into account which products comprised the order, and how many of each of them.
1617 * @return the cost of the order.
18+ * @see BigDecimal
1719 */
18- public float totalCost ();
20+ public BigDecimal totalCost ();
1921 /**
2022 * Returns the unique Id assigned to this order.
2123 * Each Order has a unique identifier within the system. Two different orders cannot
Original file line number Diff line number Diff line change 11package coreapi ;
22
3+ import java .math .BigDecimal ;
4+
35public interface Product {
46
57 public int getId ();
6- public float getPrice ();
8+ public BigDecimal getPrice ();
79 public String getName ();
810
911}
You can’t perform that action at this time.
0 commit comments