stockreader.java
来自「这是一个买卖系统,一个模拟的系统,根据下订单,看订单,买,等功能」· Java 代码 · 共 37 行
JAVA
37 行
package Middle;
import Catalogue.*;
import javax.swing.ImageIcon;
/**
* Interface for read access to the stock list.
* @author Michael Alexander Smith
* @version 2.0
*/
public interface StockReader
{
/**
* Checks if the product exits in the stock list
* @return true if exists otherwise false
*/
boolean exists( String number ) throws StockException;
/**
* Returns details about the product in the stock list
* @return StockNumber, Description, Price, Quantity
*/
Product getDetails( String number ) throws StockException;
/**
* Returns an image of the product in the stock list
* @return Image
*/
ImageIcon getImage( String number ) throws StockException;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?