|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibspan.ecap.merchant.shopdecisions.ProductProvider
public class ProductProvider
A class managing a list of products sold by the shop. Current implementation stores the products in memory.
Constructor Summary | |
---|---|
ProductProvider()
|
Method Summary | |
---|---|
void |
addProduct(java.lang.String productId)
Adds the product to the list. |
java.lang.String |
getNextProductId()
Returns the id of the next product to process. |
void |
removeProduct(java.lang.String productId)
Removes the product from the list. |
boolean |
roundFinished()
Determines whether a whole cycle of products has passed. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProductProvider()
Method Detail |
---|
public java.lang.String getNextProductId()
public boolean roundFinished()
public void addProduct(java.lang.String productId)
productId
- the id of the product to be handledpublic void removeProduct(java.lang.String productId)
productId
- the id of the product to be withdrawn
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |