Skip to content

Commit 54c0b3d

Browse files
Java doc update
1 parent a45e7ca commit 54c0b3d

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

src/main/java/coreapi/OrderFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
22
* @author Borja
3+
* @author María
34
* @version 0.2
45
* @see Order
56
*/

src/main/java/coreapi/OrderService.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* @author María
3+
* @version 0.2
4+
*/
5+
16
package coreapi;
27

38
import java.math.BigDecimal;

src/main/java/coreapi/Product.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,33 @@
1+
/**
2+
* @author Fran
3+
* @version 0.2
4+
*/
5+
16
package coreapi;
27

38
import java.math.BigDecimal;
49

510
public interface Product {
611

12+
/**
13+
* Returns the unique id assigned by the product catalog to this specific catalog.
14+
* @return returns the id of this product.
15+
* @see ProductCatalog
16+
*/
717
public int getId();
18+
19+
/**
20+
* Returns the price of this product as a <code>BigDecimal</code> to avoid precision loss.
21+
* @return returns the price of this product.
22+
* @see BigDecimal
23+
*/
824
public BigDecimal getPrice();
25+
26+
/**
27+
* Returns the name assigned by the product catalog to this specific catalog.
28+
* @return returns the name of this product.
29+
* @see ProductCatalog
30+
*/
931
public String getName();
1032

1133
}

0 commit comments

Comments
 (0)