File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * @author Borja
3+ * @version 0.2
4+ * @see Order
5+ */
6+
17package coreapi ;
28
39import java .util .Date ;
410
511public class OrderFactory
612{
713
8- //Save the order number, which is correlative and cannot be repeated
9- //It starts at 0 because the first registered order will have 0 as its identification number
14+ // There is just this ONE number counter , which is incremental.
15+ // It starts at 0 because the first registered order will have 0 as its identification number.
1016 private static int orderCount = 0 ;
1117
1218 /**
@@ -32,7 +38,7 @@ public static Order createOrder()
3238 }
3339
3440 /**
35- * Returns a new instance of Order with a unique id.
41+ * Returns a new instance of <code> Order</code> with a unique id.
3642 * Sets the specified timestamp as the order's creation date.
3743 * @param creationDate the timestamp to assign to the order
3844 * @return the newly created instance of an order from the indicated date.
You can’t perform that action at this time.
0 commit comments