|
CoCoME System Tests | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cocome.tradingsystem.systests.util.GeneratedProduct
public final class GeneratedProduct
Simple storage class for generated products.
Field Summary | |
---|---|
(package private) int |
barcode
The barcode of the product. |
(package private) java.lang.String |
name
The name of the product. |
(package private) IProduct |
product
The product itself. |
(package private) int |
purchasePrice
The purchase price of the product in cents. |
Constructor Summary | |
---|---|
GeneratedProduct(int barcode,
int purchasePrice,
java.lang.String name,
IProduct product)
Create a new instance. |
Method Summary | |
---|---|
int |
getBarcode()
Returns the barcode. |
java.lang.String |
getName()
Returns the name. |
IProduct |
getProduct()
Returns the product. |
int |
getPurchasePrice()
Returns the purchase price in cents. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final int barcode
final int purchasePrice
final java.lang.String name
final IProduct product
Constructor Detail |
---|
GeneratedProduct(int barcode, int purchasePrice, java.lang.String name, IProduct product)
Method Detail |
---|
public int getBarcode()
public java.lang.String getName()
public IProduct getProduct()
public int getPurchasePrice()
|
CoCoME System Tests | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |