📄 stockreadwriter.java
字号:
package Middle;
import Catalogue.*;
/**
* Interface for read/write access to the stock list.
* @author Michael Alexander Smith
* @version 2.0
*/
public interface StockReadWriter extends StockReader
{
/**
* Customer buys stock,
* stock level is thus decremented by amount bought.
* @return StockNumber, Description, Price, Quantity
*/
boolean buyStock( String number, int amount ) throws StockException;
/**
* Adds stock (Restocks) to store.
*/
void addStock( String number, int amount ) throws StockException;
/**
* Modifies Stock details for a given product number.
* Information modified: Description, Price
*/
void modifyStock( Product detail ) throws StockException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -