Skip to content

Commit 9bf56ab

Browse files
Added some more javadoc documentation to the OrderFactory class.
1 parent e427f57 commit 9bf56ab

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/main/java/coreapi/OrderFactory.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
1+
/**
2+
* @author Borja
3+
* @version 0.2
4+
* @see Order
5+
*/
6+
17
package coreapi;
28

39
import java.util.Date;
410

511
public 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.

0 commit comments

Comments
 (0)